pub struct Lambda<'a> {
pub params: Box<Parameters<'a>>,
pub body: Box<Expression<'a>>,
pub colon: Colon<'a>,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
pub whitespace_after_lambda: Option<ParenthesizableWhitespace<'a>>,
}
Fields§
§params: Box<Parameters<'a>>
§body: Box<Expression<'a>>
§colon: Colon<'a>
§lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
§whitespace_after_lambda: Option<ParenthesizableWhitespace<'a>>
Trait Implementations§
Source§impl<'a> ParenthesizedNode<'a> for Lambda<'a>
impl<'a> ParenthesizedNode<'a> for Lambda<'a>
fn lpar(&self) -> &Vec<LeftParen<'a>>
fn rpar(&self) -> &Vec<RightParen<'a>>
fn with_parens(self, left: LeftParen<'a>, right: RightParen<'a>) -> Self
fn parenthesize<F>(&self, state: &mut CodegenState<'a>, f: F)where
F: FnOnce(&mut CodegenState<'a>),
impl<'a> Eq for Lambda<'a>
impl<'a> StructuralPartialEq for Lambda<'a>
Auto Trait Implementations§
impl<'a> Freeze for Lambda<'a>
impl<'a> RefUnwindSafe for Lambda<'a>
impl<'a> Send for Lambda<'a>
impl<'a> Sync for Lambda<'a>
impl<'a> Unpin for Lambda<'a>
impl<'a> UnwindSafe for Lambda<'a>
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