pub fn must_exist(self) -> Result<T> {
        match self {
            OpenResult::Ok(t) => Ok(t),
            OpenResult::Err(e) => Err(e),
            OpenResult::NotAvailable => {
                Err(io::Error::new(io::ErrorKind::NotFound, "not found").into())
            }
        }
    }
/// Convert this object into a plain Result, erroring if the item was not available.
Convert this object into a plain Result, erroring if the item was not available.
Convert this object into a plain Result erroring if the item was not available .
pub fn must_exist(self) -> Result<T> {
        match self {
            OpenResult::Ok(t) => Ok(t),
            OpenResult::Err(e) => Err(e),
            OpenResult::NotAvailable => {
                Err(io::Error::new(io::ErrorKind::NotFound, "not found").into())
            }
        }
    }
pub fn must_exist ( self ) -> Result < T > { match self { OpenResult :: Ok ( t ) => Ok ( t ) , OpenResult :: Err ( e ) => Err ( e ) , OpenResult :: NotAvailable => { Err ( io :: Error :: new ( io :: ErrorKind :: NotFound , " " ) . into ( ) ) } } }
Convert this object into a plain Result, erroring if the item was not available.
Convert this object into a plain Result erroring if the item was not available .
self