pub fn load(path: &std::path::Path) -> Self {
        let file =
            File::open(path).unwrap_or_else(|e| panic!("Failed to load from {:?}: {}", path, e));
        serde_json::from_reader(file).unwrap_or_else(|e| panic!("Invalid JSON {:?}: {}", path, e))
    }
/// Load the list from a file.
Load the list from a file.
Load the list from a file .
pub fn load(path: &std::path::Path) -> Self {
        let file =
            File::open(path).unwrap_or_else(|e| panic!("Failed to load from {:?}: {}", path, e));
        serde_json::from_reader(file).unwrap_or_else(|e| panic!("Invalid JSON {:?}: {}", path, e))
    }
pub fn load ( path : & std :: path :: Path ) -> Self { let file = File :: open ( path ) . unwrap_or_else ( | e | panic ! ( " " path e ) ) ; serde_json :: from_reader ( file ) . unwrap_or_else ( | e | panic ! ( " " path e ) ) }
Load the list from a file.
Load the list from a file .
path
&std::path::Path