Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FileParser

Fully qualified path: snforge_std::fs::file_operations::FileParser

pub trait FileParser<T, impl TSerde: Serde<T>>

Trait functions

parse_txt

Reads from the text file and tries to deserialize the result into given type with Serde file - File instance Returns an instance of T if deserialization was possible

Fully qualified path: snforge_std::fs::file_operations::FileParser::parse_txt

fn parse_txt<T, impl TSerde: Serde<T>, T, impl TSerde: Serde<T>>(file: File) -> Option<T>

parse_json

Reads from the json file and tries to deserialize the result into given type with Serde file - File instance Returns an instance of T if deserialization was possible

Fully qualified path: snforge_std::fs::file_operations::FileParser::parse_json

fn parse_json<T, impl TSerde: Serde<T>, T, impl TSerde: Serde<T>>(file: File) -> Option<T>