Enum cranelift_isle::ast::TermArgPattern
source · [−]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)
A regular pattern that must match the existing value in the term’s argument.
Expr(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
sourceimpl Clone for TermArgPattern
impl Clone for TermArgPattern
sourcefn clone(&self) -> TermArgPattern
fn clone(&self) -> TermArgPattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TermArgPattern
impl Debug for TermArgPattern
sourceimpl PartialEq<TermArgPattern> for TermArgPattern
impl PartialEq<TermArgPattern> for TermArgPattern
sourcefn eq(&self, other: &TermArgPattern) -> bool
fn eq(&self, other: &TermArgPattern) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TermArgPattern) -> bool
fn ne(&self, other: &TermArgPattern) -> bool
This method tests for !=
.
impl Eq for TermArgPattern
impl StructuralEq for TermArgPattern
impl StructuralPartialEq for TermArgPattern
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more