pub struct MatchClass<'a> {
pub cls: NameOrAttribute<'a>,
pub patterns: Vec<MatchSequenceElement<'a>>,
pub kwds: Vec<MatchKeywordElement<'a>>,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
pub whitespace_after_cls: ParenthesizableWhitespace<'a>,
pub whitespace_before_patterns: ParenthesizableWhitespace<'a>,
pub whitespace_after_kwds: ParenthesizableWhitespace<'a>,
}
Fields§
§cls: NameOrAttribute<'a>
§patterns: Vec<MatchSequenceElement<'a>>
§kwds: Vec<MatchKeywordElement<'a>>
§lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
§whitespace_after_cls: ParenthesizableWhitespace<'a>
§whitespace_before_patterns: ParenthesizableWhitespace<'a>
§whitespace_after_kwds: ParenthesizableWhitespace<'a>
Trait Implementations§
Source§impl<'a> Clone for MatchClass<'a>
impl<'a> Clone for MatchClass<'a>
Source§fn clone(&self) -> MatchClass<'a>
fn clone(&self) -> MatchClass<'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 MatchClass<'a>
impl<'a> Codegen<'a> for MatchClass<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for MatchClass<'a>
impl<'a> Debug for MatchClass<'a>
Source§impl<'a> ParenthesizedNode<'a> for MatchClass<'a>
impl<'a> ParenthesizedNode<'a> for MatchClass<'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 MatchClass<'a>
impl<'a> PartialEq for MatchClass<'a>
impl<'a> Eq for MatchClass<'a>
impl<'a> StructuralPartialEq for MatchClass<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchClass<'a>
impl<'a> RefUnwindSafe for MatchClass<'a>
impl<'a> Send for MatchClass<'a>
impl<'a> Sync for MatchClass<'a>
impl<'a> Unpin for MatchClass<'a>
impl<'a> UnwindSafe for MatchClass<'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