Struct cranelift_isle::ir::PatternSequence
source · [−]pub struct PatternSequence {
pub insts: Vec<PatternInst>,
}
Expand description
A linear sequence of instructions that match on and destructure an
argument. A pattern is fallible (may not match). If it does not fail, its
result consists of the values produced by the PatternInst
s, which may be
used by a subsequent Expr
.
Fields
insts: Vec<PatternInst>
Instruction sequence for pattern.
InstId
indexes into this sequence for Value::Pattern
values.
Trait Implementations
sourceimpl Clone for PatternSequence
impl Clone for PatternSequence
sourcefn clone(&self) -> PatternSequence
fn clone(&self) -> PatternSequence
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 PatternSequence
impl Debug for PatternSequence
sourceimpl Default for PatternSequence
impl Default for PatternSequence
sourcefn default() -> PatternSequence
fn default() -> PatternSequence
Returns the “default value” for a type. Read more
sourceimpl Hash for PatternSequence
impl Hash for PatternSequence
sourceimpl PartialEq<PatternSequence> for PatternSequence
impl PartialEq<PatternSequence> for PatternSequence
sourcefn eq(&self, other: &PatternSequence) -> bool
fn eq(&self, other: &PatternSequence) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PatternSequence) -> bool
fn ne(&self, other: &PatternSequence) -> bool
This method tests for !=
.
impl Eq for PatternSequence
impl StructuralEq for PatternSequence
impl StructuralPartialEq for PatternSequence
Auto Trait Implementations
impl RefUnwindSafe for PatternSequence
impl Send for PatternSequence
impl Sync for PatternSequence
impl Unpin for PatternSequence
impl UnwindSafe for PatternSequence
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