Struct cranelift_isle::sema::IfLet
source · pub struct IfLet {
pub lhs: Pattern,
pub rhs: Expr,
}
Expand description
An if-let
clause with a subpattern match on an expr after the
main LHS matches.
Fields§
§lhs: Pattern
The left-hand side pattern that this if-let
clause matches
against the expression below.
rhs: Expr
The right-hand side expression that this pattern evaluates. Must be pure.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IfLet
impl Send for IfLet
impl Sync for IfLet
impl Unpin for IfLet
impl UnwindSafe for IfLet
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