pub enum MacroError {
InvalidItemKind {
kind: ItemKind,
},
InvalidArgument {
arg: FnArg,
},
UnhandledArgumentType {
ty: Ty,
},
UnhandledRetType {
ty: Ty,
},
UnexpectedMultiTokenMacro {
tokens: Vec<TokenTree>,
},
UnexpectedSingleToken {
token: Token,
},
UnexpectedEndOfMacroInvocation {
tokens: Tokens,
},
UnexpectedReparseFailure {
err_msg: String,
},
}
Variants§
InvalidItemKind
InvalidArgument
UnhandledArgumentType
UnhandledRetType
UnexpectedMultiTokenMacro
UnexpectedSingleToken
UnexpectedEndOfMacroInvocation
UnexpectedReparseFailure
Trait Implementations§
Source§impl Debug for MacroError
impl Debug for MacroError
Source§impl Display for MacroError
impl Display for MacroError
Source§impl Fail for MacroError
impl Fail for MacroError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl Freeze for MacroError
impl RefUnwindSafe for MacroError
impl Send for MacroError
impl Sync for MacroError
impl Unpin for MacroError
impl UnwindSafe for MacroError
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