Trait tool::monad::Ok[][src]

pub trait Ok {
    type Value;
    fn ok(self) -> Option<Self::Value>;
}

Types of values that can be "Ok".

Basically, any type with a success variant and some number of non-success variants.

Associated Types

Required Methods

Implementations on Foreign Types

impl<T> Ok for Option<T>
[src]

impl<T, E> Ok for Result<T, E>
[src]

Implementors