pub struct LetExpr<Pattern, Expr>(pub Pattern, pub Expr);Expand description
A let expression. This can be used, for example, as the condition of IfBlock in order to create an “if-let” block.
Tuple Fields§
§0: Pattern§1: ExprTrait Implementations§
Auto Trait Implementations§
impl<Pattern, Expr> Freeze for LetExpr<Pattern, Expr>
impl<Pattern, Expr> RefUnwindSafe for LetExpr<Pattern, Expr>where
Pattern: RefUnwindSafe,
Expr: RefUnwindSafe,
impl<Pattern, Expr> Send for LetExpr<Pattern, Expr>
impl<Pattern, Expr> Sync for LetExpr<Pattern, Expr>
impl<Pattern, Expr> Unpin for LetExpr<Pattern, Expr>
impl<Pattern, Expr> UnwindSafe for LetExpr<Pattern, Expr>where
Pattern: UnwindSafe,
Expr: UnwindSafe,
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