pub struct DictComp<'a> {
pub key: Box<Expression<'a>>,
pub value: Box<Expression<'a>>,
pub for_in: Box<CompFor<'a>>,
pub lbrace: LeftCurlyBrace<'a>,
pub rbrace: RightCurlyBrace<'a>,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
pub whitespace_before_colon: ParenthesizableWhitespace<'a>,
pub whitespace_after_colon: ParenthesizableWhitespace<'a>,
}Fields§
§key: Box<Expression<'a>>§value: Box<Expression<'a>>§for_in: Box<CompFor<'a>>§lbrace: LeftCurlyBrace<'a>§rbrace: RightCurlyBrace<'a>§lpar: Vec<LeftParen<'a>>§rpar: Vec<RightParen<'a>>§whitespace_before_colon: ParenthesizableWhitespace<'a>§whitespace_after_colon: ParenthesizableWhitespace<'a>Trait Implementations§
Source§impl<'a> ParenthesizedNode<'a> for DictComp<'a>
impl<'a> ParenthesizedNode<'a> for DictComp<'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 DictComp<'a>
impl<'a> StructuralPartialEq for DictComp<'a>
Auto Trait Implementations§
impl<'a> Freeze for DictComp<'a>
impl<'a> RefUnwindSafe for DictComp<'a>
impl<'a> Send for DictComp<'a>
impl<'a> Sync for DictComp<'a>
impl<'a> Unpin for DictComp<'a>
impl<'a> UnwindSafe for DictComp<'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