pub struct Capture {
pub expr: Expr,
pub pat: Pat,
}Expand description
Captures an expression’s value at function entry.
Fields§
§expr: ExprThe expression to capture.
pat: PatThe pattern to bind/destructure the captured value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Capture
impl RefUnwindSafe for Capture
impl !Send for Capture
impl !Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capture
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