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
extractthat works like the?operator and can be used in functions that return aNullableResultas long as the error type is the same. It takes aNullableResult, aResult, or anOption. If the input contains anOkorSomevalue, the value is extracted and returned, if it contains anErrorNull, the function returns early with theErrorNullwrapped 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