Type Definition this_is_fine::Fine [−][src]
pub type Fine<T, E> = (T, Result<(), E>);
Expand description
Broadly speaking, this is the result of an operation that sort of can’t fail.
Added Methods
.fine() -> T
.not_fine() -> Result<T, E>
Trait Implementations
Converts from Fine<T, E>
to Result<T, E>
. Read more
Converts from &Fine<T, E>
to Fine<&T, &E>
. Read more
Converts from &mut Fine<T, E>
to Fine<&mut T, &mut E>
. Read more
Maps a Fine<T, E>
to Fine<U, E>
,
by unconditionally applying a function to the contained T
,
leaving the Result
untouched. Read more
Maps a Fine<T, E>
to Fine<T, F>
,
by applying a function to a contained Err
’s E
,
leaving the T
untouched. Read more