pub struct Closure {
pub arg: Box<Pattern>,
pub body: Box<Expr>,
}
Expand description
A Closure expression: |
Expr
|
( -> Ty
)? Expr
Fields§
§arg: Box<Pattern>
§body: Box<Expr>
Trait Implementations§
impl Eq for Closure
impl StructuralPartialEq for Closure
Auto Trait Implementations§
impl Freeze for Closure
impl RefUnwindSafe for Closure
impl Send for Closure
impl Sync for Closure
impl Unpin for Closure
impl UnwindSafe for Closure
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