Type Alias rustpython_ast::located::PatternMatchMapping
source · pub type PatternMatchMapping = PatternMatchMapping<SourceRange>;
Aliased Type§
struct PatternMatchMapping {
pub range: SourceRange,
pub keys: Vec<Expr<SourceRange>>,
pub patterns: Vec<Pattern<SourceRange>>,
pub rest: Option<Identifier>,
}
Fields§
§range: SourceRange
§keys: Vec<Expr<SourceRange>>
§patterns: Vec<Pattern<SourceRange>>
§rest: Option<Identifier>
Trait Implementations§
source§impl Located for PatternMatchMapping
impl Located for PatternMatchMapping
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
source§impl LocatedMut for PatternMatchMapping
impl LocatedMut for PatternMatchMapping
fn range_mut(&mut self) -> &mut SourceRange
source§impl<R: Clone> Clone for PatternMatchMapping<R>
impl<R: Clone> Clone for PatternMatchMapping<R>
source§fn clone(&self) -> PatternMatchMapping<R>
fn clone(&self) -> PatternMatchMapping<R>
Returns a copy 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<R: Debug> Debug for PatternMatchMapping<R>
impl<R: Debug> Debug for PatternMatchMapping<R>
source§impl<T, U> Foldable<T, U> for PatternMatchMapping<T>
impl<T, U> Foldable<T, U> for PatternMatchMapping<T>
source§impl<R> Node for PatternMatchMapping<R>
impl<R> Node for PatternMatchMapping<R>
source§impl<R: PartialEq> PartialEq for PatternMatchMapping<R>
impl<R: PartialEq> PartialEq for PatternMatchMapping<R>
source§fn eq(&self, other: &PatternMatchMapping<R>) -> bool
fn eq(&self, other: &PatternMatchMapping<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.