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 InvalidToken
impl !Send for InvalidToken
impl !Sync for InvalidToken
impl Unpin for InvalidToken
impl UnwindSafe for InvalidToken
Blanket Implementations
Mutably borrows from an owned value. Read more