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: PatternThe left-hand side pattern that this if-let clause matches
against the expression below.
rhs: ExprThe right-hand side expression that this pattern evaluates. Must be pure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfLet
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