Crate this_is_fine

Crate this_is_fine 

Source
Expand description

Utilities for working with type Fine<T, E> = (T, Result<(), E>).

This crate for the most part just ports Result’s API onto Fine. See Fine for the full API.

Note that any β€œand”-, β€œor” and β€œiter”-style methods that appear on Result are excluded from the extensions.

If you need one of them, or to escalate with ?, first call .not_fine() to crumple the Fine<T, E> into a classic Result<T, E>.

(More) transpose and flatten methods are also excluded, unless I figure out what makes the most sense there.

β˜•πŸ•

ModulesΒ§

prelude

TraitsΒ§

FineExt
FineExtWhereEDebug
FineExtWhereTDebug
FineExtWhereTDeref
FineExtWhereTDerefMut
FineTransposeExt

FunctionsΒ§

from_inverse
Creates a Fine from a pair of a value and optional error.

Type AliasesΒ§

Fine
Broadly speaking, this is the result of an operation that sort of can’t fail.