pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, Box<dyn std::error::Error>> {
        let mut file = Cursor::new(fs::read(path)?);
        let ssbh = file.read_le::<Ssbh>()?;
        Ok(ssbh)
    }
/// Tries to read one of the SSBH types from `path`.
/// The entire file is buffered for performance.
Tries to read one of the SSBH types from `path`.
The entire file is buffered for performance.
Tries to read one of the SSBH types from ` path ` . The entire file is buffered for performance .
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, Box<dyn std::error::Error>> {
        let mut file = Cursor::new(fs::read(path)?);
        let ssbh = file.read_le::<Ssbh>()?;
        Ok(ssbh)
    }
pub fn from_file < P : AsRef < Path > > ( path : P ) -> Result < Self , Box < dyn std :: error :: Error > > { let mut file = Cursor :: new ( fs :: read ( path ) ? ) ; let ssbh = file . read_le :: < Ssbh > ( ) ? ; Ok ( ssbh ) }
Tries to read one of the SSBH types from `path`.
Tries to read one of the SSBH types from ` path ` .
path
P
path
P