Struct LexError
pub struct LexError(pub(crate) String);
Error returned from TokenStream::from_str.
The contained error message is explicitly not guaranteed to be stable in any way, and may change between Rust versions or across compilations.
Fields
0: String
Trait Implementations
impl !Send for LexError
impl !Sync for LexError
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 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> SizeHint for LexError
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for LexError
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>