Expand description
§Contents
- NullableResult - the core of this crate
- the extract macro - early return from functions
?
-style - iterator extension - additional methods for iterators over NullableResult
- general iterator extension - additional methods for all iterators
- MaybeTryFrom and MaybeTryInto - analogues of TryFrom and TryInto
Macros§
- extract
- This macro
extract
that works like the?
operator and can be used in functions that return aNullableResult
as long as the error type is the same. It takes aNullableResult
, aResult
, or anOption
. If the input contains anOk
orSome
value, the value is extracted and returned, if it contains anErr
orNull
, the function returns early with theErr
orNull
wrapped in a newNullableResult
.
Structs§
Enums§
- Nullable
Result - A replacement for
Option<Result<T, E>>
orResult<Option<T>, E>
.
Traits§
- General
Iter Ext - Adds additional methods to all iterators.
- IterExt
- Additional methods for iterators over
NullableResult
- Maybe
TryFrom - Analogue of TryFrom that returns a
NullableResult
- Maybe
TryInto - Analogue of TryInto that returns a
NullableResult