Struct LexError
pub struct LexError { /* private fields */ }
Error returned from TokenStream::from_str.
Implementations
impl LexError
fn span(&self) -> Span
Trait Implementations
impl Debug for LexError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for LexError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for LexError
Auto Trait Implementations
impl !Send for LexError
impl !Sync for LexError
impl Freeze for LexError
impl RefUnwindSafe for LexError
impl Unpin for LexError
impl UnsafeUnpin for LexError
impl UnwindSafe for LexError
Blanket Implementations
impl<T> Any for LexError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for LexError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for LexError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for LexError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for LexError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for LexError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for LexError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for LexError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>