pub struct LambdaExpr {
pub params: LambdaParams,
pub arrow_span: Span,
pub body: LambdaBody,
pub span: Span,
}Expand description
Lambda expression: x -> x + 1, (x, y) -> { return x + y; }.
Fields§
§params: LambdaParams§arrow_span: Span§body: LambdaBody§span: SpanTrait Implementations§
Source§impl Clone for LambdaExpr
impl Clone for LambdaExpr
Source§fn clone(&self) -> LambdaExpr
fn clone(&self) -> LambdaExpr
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 LambdaExpr
impl Debug for LambdaExpr
Source§impl Hash for LambdaExpr
impl Hash for LambdaExpr
Source§impl PartialEq for LambdaExpr
impl PartialEq for LambdaExpr
Source§fn eq(&self, other: &LambdaExpr) -> bool
fn eq(&self, other: &LambdaExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LambdaExpr
impl StructuralPartialEq for LambdaExpr
Auto Trait Implementations§
impl Freeze for LambdaExpr
impl RefUnwindSafe for LambdaExpr
impl Send for LambdaExpr
impl Sync for LambdaExpr
impl Unpin for LambdaExpr
impl UnsafeUnpin for LambdaExpr
impl UnwindSafe for LambdaExpr
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