pub struct PatternMatchOr<R = TextRange> {
pub range: R,
pub patterns: Vec<Pattern<R>>,
}
Expand description
See also MatchOr
Fields§
§range: R
§patterns: Vec<Pattern<R>>
Trait Implementations§
Source§impl<R> Clone for PatternMatchOr<R>where
R: Clone,
impl<R> Clone for PatternMatchOr<R>where
R: Clone,
Source§fn clone(&self) -> PatternMatchOr<R>
fn clone(&self) -> PatternMatchOr<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 PatternMatchOr<R>where
R: Debug,
impl<R> Debug for PatternMatchOr<R>where
R: Debug,
Source§impl<T, U> Foldable<T, U> for PatternMatchOr<T>
impl<T, U> Foldable<T, U> for PatternMatchOr<T>
Source§impl<R> From<PatternMatchOr<R>> for Ast<R>
impl<R> From<PatternMatchOr<R>> for Ast<R>
Source§fn from(payload: PatternMatchOr<R>) -> Ast<R>
fn from(payload: PatternMatchOr<R>) -> Ast<R>
Converts to this type from the input type.
Source§impl<R> From<PatternMatchOr<R>> for Pattern<R>
impl<R> From<PatternMatchOr<R>> for Pattern<R>
Source§fn from(payload: PatternMatchOr<R>) -> Pattern<R>
fn from(payload: PatternMatchOr<R>) -> Pattern<R>
Converts to this type from the input type.
Source§impl Located for PatternMatchOr<SourceRange>
impl Located for PatternMatchOr<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
Source§impl LocatedMut for PatternMatchOr<SourceRange>
impl LocatedMut for PatternMatchOr<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
Source§impl<R> Node for PatternMatchOr<R>
impl<R> Node for PatternMatchOr<R>
Source§impl<R> PartialEq for PatternMatchOr<R>where
R: PartialEq,
impl<R> PartialEq for PatternMatchOr<R>where
R: PartialEq,
Source§impl Ranged for PatternMatchOr
impl Ranged for PatternMatchOr
impl<R> StructuralPartialEq for PatternMatchOr<R>
Auto Trait Implementations§
impl<R> Freeze for PatternMatchOr<R>where
R: Freeze,
impl<R> RefUnwindSafe for PatternMatchOr<R>where
R: RefUnwindSafe,
impl<R> Send for PatternMatchOr<R>where
R: Send,
impl<R> Sync for PatternMatchOr<R>where
R: Sync,
impl<R> Unpin for PatternMatchOr<R>where
R: Unpin,
impl<R> UnwindSafe for PatternMatchOr<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more