Trait libimagref::error::error::OkOrErr []

pub trait OkOrErr<T> {
    fn ok_or_errkind(self, kind: RefErrorKind) -> Result<T, RefError>;
}

Trait to replace

foo.ok_or(SomeType::SomeErrorKind.into_error())

with

foo.ok_or_errkind(SomeType::SomeErrorKind)

Required Methods

Implementors