pub struct ClosureExpr {
pub is_static: bool,
pub by_ref: bool,
pub params: Box<[Param]>,
pub use_vars: Box<[ClosureUseVar]>,
pub return_type: Option<TypeHint>,
pub body: Box<Block>,
pub attributes: Box<[Attribute]>,
}Fields§
§is_static: bool§by_ref: bool§params: Box<[Param]>§use_vars: Box<[ClosureUseVar]>§return_type: Option<TypeHint>§body: Box<Block>§attributes: Box<[Attribute]>Trait Implementations§
Source§impl Clone for ClosureExpr
impl Clone for ClosureExpr
Source§fn clone(&self) -> ClosureExpr
fn clone(&self) -> ClosureExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClosureExpr
impl Debug for ClosureExpr
Auto Trait Implementations§
impl Freeze for ClosureExpr
impl RefUnwindSafe for ClosureExpr
impl Send for ClosureExpr
impl Sync for ClosureExpr
impl Unpin for ClosureExpr
impl UnsafeUnpin for ClosureExpr
impl UnwindSafe for ClosureExpr
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