Crate nullable_result

Source
Expand description

§Contents

Macros§

extract
This macro extract that works like the ? operator and can be used in functions that return a NullableResult as long as the error type is the same. It takes a NullableResult, a Result, or an Option. If the input contains an Ok or Some value, the value is extracted and returned, if it contains an Err or Null, the function returns early with the Err or Null wrapped in a new NullableResult.

Structs§

TryFilter
See IterExt::try_filter
TryFilterMap
See IterExt::try_filter_map

Enums§

NullableResult
A replacement for Option<Result<T, E>> or Result<Option<T>, E>.

Traits§

GeneralIterExt
Adds additional methods to all iterators.
IterExt
Additional methods for iterators over NullableResult
MaybeTryFrom
Analogue of TryFrom that returns a NullableResult
MaybeTryInto
Analogue of TryInto that returns a NullableResult