pub struct MatchMapping<'a> {
pub elements: Vec<MatchMappingElement<'a>>,
pub rest: Option<Name<'a>>,
pub trailing_comma: Option<Comma<'a>>,
pub lbrace: LeftCurlyBrace<'a>,
pub rbrace: RightCurlyBrace<'a>,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
pub whitespace_before_rest: SimpleWhitespace<'a>,
}
Fields§
§elements: Vec<MatchMappingElement<'a>>
§rest: Option<Name<'a>>
§trailing_comma: Option<Comma<'a>>
§lbrace: LeftCurlyBrace<'a>
§rbrace: RightCurlyBrace<'a>
§lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
§whitespace_before_rest: SimpleWhitespace<'a>
Trait Implementations§
Source§impl<'a> Clone for MatchMapping<'a>
impl<'a> Clone for MatchMapping<'a>
Source§fn clone(&self) -> MatchMapping<'a>
fn clone(&self) -> MatchMapping<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Codegen<'a> for MatchMapping<'a>
impl<'a> Codegen<'a> for MatchMapping<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for MatchMapping<'a>
impl<'a> Debug for MatchMapping<'a>
Source§impl<'a> ParenthesizedNode<'a> for MatchMapping<'a>
impl<'a> ParenthesizedNode<'a> for MatchMapping<'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 MatchMapping<'a>
impl<'a> PartialEq for MatchMapping<'a>
impl<'a> Eq for MatchMapping<'a>
impl<'a> StructuralPartialEq for MatchMapping<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchMapping<'a>
impl<'a> RefUnwindSafe for MatchMapping<'a>
impl<'a> Send for MatchMapping<'a>
impl<'a> Sync for MatchMapping<'a>
impl<'a> Unpin for MatchMapping<'a>
impl<'a> UnwindSafe for MatchMapping<'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