Module dock_crypto_utils::try_iter
source · Structs§
- Implements
SeqValidator
which ensures that for each item its left member satisfies provided validator. - Implements
SeqValidator
which ensures that for each item its right member satisfies provided validator. - Provided index is out of bounds.
- This pair was invalid according to the supplied predicate.
Enums§
- This pair or item was invalid according to the supplied predicate.
Traits§
- Trait allowing to accumulatively validate supplied sequence of items.
Functions§
- Maps supplied iterator and attempts to pair each
Ok(_)
item with an item from the slice which has provided index. ReturnsErr
containing an invalid index in case slice length is exceeded. - Ensures that the given iterator satisfies provided validator for each successful item. In case of an error,
Err(E)
will be emitted.