/// Creates a new file source for the given filename.
Creates a new file source for the given filename.
Creates a new file source for the given filename .
pub fn new(filename: &str) -> std::io::Result<FastFileSource> {
        let file = File::open(filename)?;
        let mmap = unsafe { Mmap::map(&file)? };
        let ffs = FastFileSource { mmap: mmap };
        Ok(ffs)
    }
pub fn new ( filename : & str ) -> std :: io :: Result < FastFileSource > { let file = File :: open ( filename ) ? ; let mmap = unsafe { Mmap :: map ( & file ) ? } ; let ffs = FastFileSource { mmap : mmap } ; Ok ( ffs ) }
Creates a new file source for the given filename.
Creates a new file source for the given filename .
filename
&str