Struct litrs::InvalidToken [−][src]
pub struct InvalidToken { /* fields omitted */ }Expand description
An error signaling that a different kind of token was expected. Returned by
the various TryFrom impls.
Implementations
Returns a token stream representing compile_error!("msg"); where
"msg" is the output of self.to_string(). Panics if called outside
of a proc-macro context!
Like to_compile_error, but returns a token
stream from proc_macro2 and does not panic outside of a proc-macro
context.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InvalidTokenimpl !Send for InvalidTokenimpl !Sync for InvalidTokenimpl Unpin for InvalidTokenimpl UnwindSafe for InvalidTokenBlanket Implementations
Mutably borrows from an owned value. Read more