pub type Result<I, E = Error> = Result<I, E>;Aliased Type§
enum Result<I, E = Error> {
Ok(I),
Err(E),
}Variants§
Trait Implementations§
Source§impl<T, E> DefaultFilterable for Result<T, E>
A Result has a value if it is Ok.
impl<T, E> DefaultFilterable for Result<T, E>
A Result has a value if it is Ok.
Source§type Error = Infallible
type Error = Infallible
An error that prevented
as_filtered() to succeed,
e.g. a poisoned state or an unacquirable lock.Source§fn as_filtered(&self) -> Result<Option<&T>, Infallible>
fn as_filtered(&self) -> Result<Option<&T>, Infallible>
Return the contained value, if a value was contained, and it’s not the default value. Read more