MCPcopy Create free account
hub / github.com/CleanCut/ultimate_rust2 / from_file

Method from_file

example/puzzles/src/lib.rs:31–35  ·  view source on GitHub ↗

Load a puzzle from a file

(_fh: File)

Source from the content-addressed store, hash-verified

29 }
30 /// Load a puzzle from a file
31 pub fn from_file(_fh: File) -> Result<Self, PuzzleError> {
32 println!("HERE");
33 error!("This file is missing a piece!");
34 Err(PuzzleError::MissingPiece)
35 }
36}
37
38impl Default for Puzzle {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected