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

Trait Implementations

Returns true iff the Result is Ok(()).

Returns true iff the Result is Err.

Converts from Fine<T, E> to Option<T>. Read more

Unwraps the T, ignoring any Err.

Converts from Fine<T, E> to Option<E>. Read more

Converts from Fine<T, E> to Result<T, 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

Unwraps the T. Read more

Unwraps the T. Read more

Unwraps the E. Read more

Unwraps the E. Read more

Coerces the T via Deref and returns a new Fine referencing the original.

Coerces the T via DerefMut and returns a new Fine referencing the original.

Exchanges the Results of nested Fines.