Struct libcst_native::Lambda
source · 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>),
source§impl<'a> PartialEq for Lambda<'a>
impl<'a> PartialEq for Lambda<'a>
impl<'a> Eq for Lambda<'a>
impl<'a> StructuralPartialEq for Lambda<'a>
Auto Trait Implementations§
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