pub fn from_file(mut f: std::fs::File) -> Result<Self, Error> {
        let mut data = vec![];
        f.seek(SeekFrom::Start(0))?;
        f.read_to_end(&mut data)?;
        Self::from_vec(data)
    }
/// Read terminfo from an already-open filehandle.
Read terminfo from an already-open filehandle.
Read terminfo from an already - open filehandle .
pub fn from_file(mut f: std::fs::File) -> Result<Self, Error> {
        let mut data = vec![];
        f.seek(SeekFrom::Start(0))?;
        f.read_to_end(&mut data)?;
        Self::from_vec(data)
    }
pub fn from_file ( mut f : std :: fs :: File ) -> Result < Self , Error > { let mut data = vec ! [ ] ; f . seek ( SeekFrom :: Start ( 0 ) ) ? ; f . read_to_end ( & mut data ) ? ; Self :: from_vec ( data ) }
Read terminfo from an already-open filehandle.
Read terminfo from an already - open filehandle .
f
std::fs::File
f
std::fs::File