Type Alias Result

Source
pub type Result<I, E = Error> = Result<I, E>;
Expand description

The Result type with Error as default error type

Aliased Type§

enum Result<I, E = Error> {
    Ok(I),
    Err(E),
}

Variants§

§1.0.0

Ok(I)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

impl<T, E> DefaultFilterable for Result<T, E>

A Result has a value if it is Ok.

Source§

type Filtered<'a> = &'a T where Self: 'a

The contained value
Source§

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>

Return the contained value, if a value was contained, and it’s not the default value. Read more