Struct rustpython_vm::compiler::parser::ast::PatternMatchSingleton
source · pub struct PatternMatchSingleton<R = TextRange> {
pub range: R,
pub value: Constant,
}
Expand description
See also MatchSingleton
Fields§
§range: R
§value: Constant
Trait Implementations§
source§impl<R> Clone for PatternMatchSingleton<R>where
R: Clone,
impl<R> Clone for PatternMatchSingleton<R>where R: Clone,
source§fn clone(&self) -> PatternMatchSingleton<R>
fn clone(&self) -> PatternMatchSingleton<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 for PatternMatchSingleton<R>where
R: Debug,
impl<R> Debug for PatternMatchSingleton<R>where R: Debug,
source§impl<T, U> Foldable<T, U> for PatternMatchSingleton<T>
impl<T, U> Foldable<T, U> for PatternMatchSingleton<T>
source§impl<R> From<PatternMatchSingleton<R>> for Ast<R>
impl<R> From<PatternMatchSingleton<R>> for Ast<R>
source§fn from(payload: PatternMatchSingleton<R>) -> Ast<R>
fn from(payload: PatternMatchSingleton<R>) -> Ast<R>
Converts to this type from the input type.
source§impl<R> From<PatternMatchSingleton<R>> for Pattern<R>
impl<R> From<PatternMatchSingleton<R>> for Pattern<R>
source§fn from(payload: PatternMatchSingleton<R>) -> Pattern<R>
fn from(payload: PatternMatchSingleton<R>) -> Pattern<R>
Converts to this type from the input type.
source§impl Located for PatternMatchSingleton<SourceRange>
impl Located for PatternMatchSingleton<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
source§impl LocatedMut for PatternMatchSingleton<SourceRange>
impl LocatedMut for PatternMatchSingleton<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
source§impl<R> Node for PatternMatchSingleton<R>
impl<R> Node for PatternMatchSingleton<R>
source§impl<R> PartialEq<PatternMatchSingleton<R>> for PatternMatchSingleton<R>where
R: PartialEq<R>,
impl<R> PartialEq<PatternMatchSingleton<R>> for PatternMatchSingleton<R>where R: PartialEq<R>,
source§fn eq(&self, other: &PatternMatchSingleton<R>) -> bool
fn eq(&self, other: &PatternMatchSingleton<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Ranged for PatternMatchSingleton<TextRange>
impl Ranged for PatternMatchSingleton<TextRange>
impl<R> StructuralPartialEq for PatternMatchSingleton<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for PatternMatchSingleton<R>where R: RefUnwindSafe,
impl<R> Send for PatternMatchSingleton<R>where R: Send,
impl<R> Sync for PatternMatchSingleton<R>where R: Sync,
impl<R> Unpin for PatternMatchSingleton<R>where R: Unpin,
impl<R> UnwindSafe for PatternMatchSingleton<R>where R: UnwindSafe,
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