Struct buffered_reader::File[][src]

pub struct File<'a, C: Debug + Sync + Send>(_, _);

Wraps files using mmap().

This implementation tries to mmap the file, falling back to just using a generic reader.

Implementations

impl<'a> File<'a, ()>[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>[src]

Opens the given file.

impl<'a, C: Debug + Sync + Send> File<'a, C>[src]

Like open(), but sets a cookie.

Trait Implementations

impl<'a, C: Debug + Sync + Send> BufferedReader<C> for File<'a, C>[src]

impl<'a, C: Debug + Sync + Send> Debug for File<'a, C>[src]

impl<'a, C: Debug + Sync + Send> Display for File<'a, C>[src]

impl<'a, C: Debug + Sync + Send> Read for File<'a, C>[src]

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for File<'a, C>

impl<'a, C> Send for File<'a, C>

impl<'a, C> Sync for File<'a, C>

impl<'a, C> Unpin for File<'a, C> where
    C: Unpin

impl<'a, C> !UnwindSafe for File<'a, C>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.