Struct lang_util::error::TokenDescription
source · pub struct TokenDescription {
pub formatted: String,
pub variant_name: &'static str,
pub parser_token: &'static str,
pub kinds: &'static [&'static str],
}
Expand description
Information about a lexed token
Fields§
§formatted: String
String representation of the lexed token
variant_name: &'static str
Variant name
parser_token: &'static str
Parser token name
kinds: &'static [&'static str]
List of kinds this token belongs to
Trait Implementations§
source§impl Clone for TokenDescription
impl Clone for TokenDescription
source§fn clone(&self) -> TokenDescription
fn clone(&self) -> TokenDescription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokenDescription
impl Debug for TokenDescription
source§impl Display for TokenDescription
impl Display for TokenDescription
source§impl Hash for TokenDescription
impl Hash for TokenDescription
source§impl PartialEq for TokenDescription
impl PartialEq for TokenDescription
source§fn eq(&self, other: &TokenDescription) -> bool
fn eq(&self, other: &TokenDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TokenDescription
impl PartialOrd for TokenDescription
source§fn partial_cmp(&self, other: &TokenDescription) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenDescription) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TokenDescription
impl Serialize for TokenDescription
impl Eq for TokenDescription
impl StructuralPartialEq for TokenDescription
Auto Trait Implementations§
impl Freeze for TokenDescription
impl RefUnwindSafe for TokenDescription
impl Send for TokenDescription
impl Sync for TokenDescription
impl Unpin for TokenDescription
impl UnwindSafe for TokenDescription
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more