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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)