Enum cranelift_isle::ast::TermArgPattern [−][src]
Expand description
A pattern in a term argument. Adds “evaluated expression” to kinds
of patterns in addition to all options in Pattern
.
Variants
Pattern(Pattern)
Tuple Fields
0: Pattern
A regular pattern that must match the existing value in the term’s argument.
Expr(Expr)
Tuple Fields
0: Expr
An expression that is evaluated during the match phase and can be given into an extractor. This is essentially a limited form of unification or bidirectional argument flow (a la Prolog): we can pass an arg into an extractor rather than getting the arg out of it.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TermArgPattern
impl Send for TermArgPattern
impl Sync for TermArgPattern
impl Unpin for TermArgPattern
impl UnwindSafe for TermArgPattern
Blanket Implementations
Mutably borrows from an owned value. Read more