pub fn load_cosmogony_from_file(input: impl AsRef<Path>) -> Result<Cosmogony, Error> {
    let format = OutputFormat::from_filename(input.as_ref())?;
    let f = std::fs::File::open(&input)?;
    let f = std::io::BufReader::new(f);
    load_cosmogony(f, format)
}
/// Load a cosmogony from a file
Load a cosmogony from a file
Load a cosmogony from a file
pub fn load_cosmogony_from_file(input: impl AsRef<Path>) -> Result<Cosmogony, Error> {
    let format = OutputFormat::from_filename(input.as_ref())?;
    let f = std::fs::File::open(&input)?;
    let f = std::io::BufReader::new(f);
    load_cosmogony(f, format)
}
pub fn load_cosmogony_from_file ( input : impl AsRef < Path > ) -> Result < Cosmogony , Error > { let format = OutputFormat :: from_filename ( input . as_ref ( ) ) ? ; let f = std :: fs :: File :: open ( & input ) ? ; let f = std :: io :: BufReader :: new ( f ) ; load_cosmogony ( f , format ) }
Load a cosmogony from a file
Load a cosmogony from a file
input
impl AsRef<Path>