pub enum LambdaBody {
Expr(Box<Expr>),
Block(Block),
}Expand description
Lambda body: either an expression or a block.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LambdaBody
impl Clone for LambdaBody
Source§fn clone(&self) -> LambdaBody
fn clone(&self) -> LambdaBody
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 LambdaBody
impl Debug for LambdaBody
impl Eq for LambdaBody
Source§impl Hash for LambdaBody
impl Hash for LambdaBody
Source§impl PartialEq for LambdaBody
impl PartialEq for LambdaBody
Source§fn eq(&self, other: &LambdaBody) -> bool
fn eq(&self, other: &LambdaBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LambdaBody
Auto Trait Implementations§
impl Freeze for LambdaBody
impl RefUnwindSafe for LambdaBody
impl Send for LambdaBody
impl Sync for LambdaBody
impl Unpin for LambdaBody
impl UnsafeUnpin for LambdaBody
impl UnwindSafe for LambdaBody
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