pub enum MacroFragSpecError {
Show 16 variants
Block(ParserError<Block>),
Expr(ParserError<Expr>),
Expr2021(ParserError<Expr2021>),
Ident(ParserError<Ident>),
Item(ParserError<Item>),
Lifetime(ParserError<Lifetime>),
Literal(ParserError<Literal>),
Meta(ParserError<Meta>),
Pat(ParserError<Pat>),
PatParam(ParserError<PatParam>),
Path(ParserError<Path>),
Stmt(ParserError<Stmt>),
Tt(ParserError<Tt>),
Ty(ParserError<Ty>),
Vis(ParserError<Vis>),
Unknown {Show 15 fields
block_err: ParserError<Block>,
expr_err: ParserError<Expr>,
expr_2021_err: ParserError<Expr2021>,
ident_err: ParserError<Ident>,
item_err: ParserError<Item>,
lifetime_err: ParserError<Lifetime>,
literal_err: ParserError<Literal>,
meta_err: ParserError<Meta>,
pat_err: ParserError<Pat>,
pat_param_err: ParserError<PatParam>,
path_err: ParserError<Path>,
stmt_err: ParserError<Stmt>,
tt_err: ParserError<Tt>,
ty_err: ParserError<Ty>,
vis_err: ParserError<Vis>,
},
}Variants§
Block(ParserError<Block>)
Expr(ParserError<Expr>)
Expr2021(ParserError<Expr2021>)
Ident(ParserError<Ident>)
Item(ParserError<Item>)
Lifetime(ParserError<Lifetime>)
Literal(ParserError<Literal>)
Meta(ParserError<Meta>)
Pat(ParserError<Pat>)
PatParam(ParserError<PatParam>)
Path(ParserError<Path>)
Stmt(ParserError<Stmt>)
Tt(ParserError<Tt>)
Ty(ParserError<Ty>)
Vis(ParserError<Vis>)
Unknown
Fields
§
block_err: ParserError<Block>§
expr_err: ParserError<Expr>§
expr_2021_err: ParserError<Expr2021>§
ident_err: ParserError<Ident>§
item_err: ParserError<Item>§
lifetime_err: ParserError<Lifetime>§
literal_err: ParserError<Literal>§
meta_err: ParserError<Meta>§
pat_err: ParserError<Pat>§
pat_param_err: ParserError<PatParam>§
path_err: ParserError<Path>§
stmt_err: ParserError<Stmt>§
tt_err: ParserError<Tt>§
ty_err: ParserError<Ty>§
vis_err: ParserError<Vis>Trait Implementations§
Source§impl Debug for MacroFragSpecError
impl Debug for MacroFragSpecError
Auto Trait Implementations§
impl Freeze for MacroFragSpecError
impl RefUnwindSafe for MacroFragSpecError
impl Send for MacroFragSpecError
impl Sync for MacroFragSpecError
impl Unpin for MacroFragSpecError
impl UnsafeUnpin for MacroFragSpecError
impl UnwindSafe for MacroFragSpecError
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