pub enum PatternWithoutRangeError {
Show 17 variants
Struct(ParserError<StructPattern>),
TupleStruct(ParserError<TupleStructPattern>),
Path(ParserError<PathPattern>),
Literal(ParserError<LiteralPattern>),
Ident(ParserError<IdentifierPattern>),
Wildcard(ParserError<WildcardPattern>),
Rest(ParserError<RestPattern>),
Reference(ParserError<ReferencePattern>),
Tuple(ParserError<TuplePattern>),
Grouped(ParserError<GroupedPattern>),
Slice(ParserError<SlicePattern>),
Macro(ParserError<MacroInvocation>),
LiteralPeek0(ParserError<ByteLiteral>),
LiteralPeek1(ParserError<ByteStringLiteral>),
IdentPeek0(ParserError<(Option<Ref>, Option<Mut>, Identifier, At)>),
MacroPeek0(ParserError<MacroInvocation>),
Unknown {
struct_err: ParserError<StructPattern>,
tuple_struct_err: ParserError<TupleStructPattern>,
path_err: ParserError<PathPattern>,
literal_err: ParserError<LiteralPattern>,
ident_err: ParserError<IdentifierPattern>,
wildcard_err: ParserError<WildcardPattern>,
rest_err: ParserError<RestPattern>,
reference_err: ParserError<ReferencePattern>,
tuple_err: ParserError<TuplePattern>,
grouped_err: ParserError<GroupedPattern>,
slice_err: ParserError<SlicePattern>,
macro_err: ParserError<MacroInvocation>,
},
}Variants§
Struct(ParserError<StructPattern>)
TupleStruct(ParserError<TupleStructPattern>)
Path(ParserError<PathPattern>)
Literal(ParserError<LiteralPattern>)
Ident(ParserError<IdentifierPattern>)
Wildcard(ParserError<WildcardPattern>)
Rest(ParserError<RestPattern>)
Reference(ParserError<ReferencePattern>)
Tuple(ParserError<TuplePattern>)
Grouped(ParserError<GroupedPattern>)
Slice(ParserError<SlicePattern>)
Macro(ParserError<MacroInvocation>)
LiteralPeek0(ParserError<ByteLiteral>)
LiteralPeek1(ParserError<ByteStringLiteral>)
IdentPeek0(ParserError<(Option<Ref>, Option<Mut>, Identifier, At)>)
MacroPeek0(ParserError<MacroInvocation>)
Unknown
Fields
§
struct_err: ParserError<StructPattern>§
tuple_struct_err: ParserError<TupleStructPattern>§
path_err: ParserError<PathPattern>§
literal_err: ParserError<LiteralPattern>§
ident_err: ParserError<IdentifierPattern>§
wildcard_err: ParserError<WildcardPattern>§
rest_err: ParserError<RestPattern>§
reference_err: ParserError<ReferencePattern>§
tuple_err: ParserError<TuplePattern>§
grouped_err: ParserError<GroupedPattern>§
slice_err: ParserError<SlicePattern>§
macro_err: ParserError<MacroInvocation>Trait Implementations§
Source§impl Debug for PatternWithoutRangeError
impl Debug for PatternWithoutRangeError
Auto Trait Implementations§
impl Freeze for PatternWithoutRangeError
impl RefUnwindSafe for PatternWithoutRangeError
impl Send for PatternWithoutRangeError
impl Sync for PatternWithoutRangeError
impl Unpin for PatternWithoutRangeError
impl UnsafeUnpin for PatternWithoutRangeError
impl UnwindSafe for PatternWithoutRangeError
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<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
fn from_recursive_root(root: R, _parser: &mut Parser) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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