Expand description
Variant combinators
Macros§
- inj_
ord_ choice_ pat - Same as above but for patterns
- inj_
ord_ choice_ result - Maps x:Ti to ord_choice_result!(T1, …, Tn)
- ord_
choice - This macro constructs a nested OrdChoice combinator in the form of OrdChoice(…, OrdChoice(…, OrdChoice(…, …)))
- ord_
choice_ result - Build a type for the result of
ord_choice! - ord_
choice_ type - Build a type for the
ord_choice!macro
Structs§
- Choice
- Combinator that tries the
Fstcombinator and if it fails, tries theSndcombinator. - Opt
- The optional combinator that never fails.
If the inner combinator fails, the result is
None. - OptThen
- Optional
- Wrapper for the
core::option::Optiontype. Needed because currently Verus does not implement theViewtrait forOption.