[][src]Trait memofs::IoResultExt

pub trait IoResultExt<T> {
    pub fn with_not_found(self) -> Result<Option<T>>;
}

Trait that transforms io::Result<T> into io::Result<Option<T>>.

Ok(None) takes the place of IO errors whose io::ErrorKind is NotFound.

Required methods

pub fn with_not_found(self) -> Result<Option<T>>

Loading content...

Implementations on Foreign Types

impl<T> IoResultExt<T> for Result<T>[src]

Loading content...

Implementors

Loading content...