pub struct NamedExpr<'a> {
pub target: Box<Expression<'a>>,
pub value: Box<Expression<'a>>,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
pub whitespace_before_walrus: ParenthesizableWhitespace<'a>,
pub whitespace_after_walrus: ParenthesizableWhitespace<'a>,
}
Fields§
§target: Box<Expression<'a>>
§value: Box<Expression<'a>>
§lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
§whitespace_before_walrus: ParenthesizableWhitespace<'a>
§whitespace_after_walrus: ParenthesizableWhitespace<'a>
Trait Implementations§
Source§impl<'a> ParenthesizedNode<'a> for NamedExpr<'a>
impl<'a> ParenthesizedNode<'a> for NamedExpr<'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 NamedExpr<'a>
impl<'a> StructuralPartialEq for NamedExpr<'a>
Auto Trait Implementations§
impl<'a> Freeze for NamedExpr<'a>
impl<'a> RefUnwindSafe for NamedExpr<'a>
impl<'a> Send for NamedExpr<'a>
impl<'a> Sync for NamedExpr<'a>
impl<'a> Unpin for NamedExpr<'a>
impl<'a> UnwindSafe for NamedExpr<'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