Struct proc_macro::ExpandError
source · [−]#[non_exhaustive]pub struct ExpandError;Expand description
Error returned from TokenStream::expand_expr.
Trait Implementations
impl Debug for ExpandError
source
impl Debug for ExpandError
sourceimpl Display for ExpandError
source
impl Display for ExpandError
sourceimpl Error for ExpandError
source
impl Error for ExpandError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · source
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · sourceThe lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
source
fn backtrace(&self) -> Option<&Backtrace>
sourceReturns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0 · source
fn description(&self) -> &str
1.0.0 · source👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl !Send for ExpandError
sourceimpl !Sync for ExpandError
sourceAuto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more