Module map

Source
Expand description

Mapped combinator

Structs§

Mapped
Combinator that maps the result of an inner combinator with an isomorphism that implements Iso.
TryMap
Combinator that maps the result of an inner combinator with a faillible conversion that implements TryFromInto.

Traits§

Iso
All isomorphisms to be used in Mapped combinator must implement this trait. Self::apply and Self::rev_apply must be inverses of each other. See [SpecIso::spec_iso] and [SpecIso::spec_iso_rev] for more details.
SpecIso
Spec version of Iso. It mandates that the isomorphism is bijective.
SpecIsoFn
Similar fix to https://github.com/secure-foundations/vest/issues/16
SpecTryFromInto
Spec version of TryFromInto.
SpecTryFromIntoFn
Similar fix to https://github.com/secure-foundations/vest/issues/16
TryFromInto
Faillible version of Iso.