pub enum LambdaBody {
Expression(Box<Expression>),
Block(Vec<Statement>),
}Expand description
Lambda body (either an expression or a block)
Variants§
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 · 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
Source§impl<'de> Deserialize<'de> for LambdaBody
impl<'de> Deserialize<'de> for LambdaBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LambdaBody
impl PartialEq for LambdaBody
Source§impl Serialize for LambdaBody
impl Serialize for LambdaBody
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