Struct cranelift_isle::serialize::MatchArm
source · pub struct MatchArm {
pub constraint: Constraint,
pub bindings: Vec<Option<BindingId>>,
pub body: Block,
}
Expand description
One concrete pattern and the block to evaluate if the pattern matches.
Fields§
§constraint: Constraint
The pattern to match.
bindings: Vec<Option<BindingId>>
If this pattern matches, it brings these bindings into scope. If a
binding is unused in this block, then the corresponding position in the
pattern’s bindings may be None
.
body: Block
Steps to evaluate if the pattern matched.
Auto Trait Implementations§
impl Freeze for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnwindSafe for MatchArm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more