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

Method new

example/puzzles/src/lib.rs:25–29  ·  view source on GitHub ↗

Make a new puzzle!

()

Source from the content-addressed store, hash-verified

23impl Puzzle {
24 /// Make a new puzzle!
25 pub fn new() -> Self {
26 let puzzle = Default::default();
27 info!("Created a puzzle with new(): {:?}", puzzle);
28 puzzle
29 }
30 /// Load a puzzle from a file
31 pub fn from_file(_fh: File) -> Result<Self, PuzzleError> {
32 println!("HERE");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected