pub fn new(mut fs: &'a File) -> Result<Iterator<'a>, Error> {
        let info = fs.metadata()?;
        if info.len() < 14 {
            // layout itself not generated so, let's delete the file.
            return Err(format_err!("invalid segment file"));
        }
        fs.seek(SeekFrom::Start(14))?;
        Ok(Iterator {
            fs: fs,
            size: info.len() as u64,
            valid_offset: 14,
            valid_entry_offset: 14,
        })
    }
/// new will give the iterator.
new will give the iterator.
new will give the iterator .
pub fn new(mut fs: &'a File) -> Result<Iterator<'a>, Error> {
        let info = fs.metadata()?;
        if info.len() < 14 {
            // layout itself not generated so, let's delete the file.
            return Err(format_err!("invalid segment file"));
        }
        fs.seek(SeekFrom::Start(14))?;
        Ok(Iterator {
            fs: fs,
            size: info.len() as u64,
            valid_offset: 14,
            valid_entry_offset: 14,
        })
    }
pub fn new ( mut fs : & ' a File ) -> Result < Iterator < ' a > , Error > { let info = fs . metadata ( ) ? ; if info . len ( ) < 14 { // layout itself not generated so, let's delete the file. return Err ( format_err ! ( " " ) ) ; } fs . seek ( SeekFrom :: Start ( 14 ) ) ? ; Ok ( Iterator { fs : fs , size : info . len ( ) as u64 , valid_offset : 14 , valid_entry_offset : 14 , } ) }
new will give the iterator.
new will give the iterator .
fs
&'a File