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§impl PartialOrd for TokenDescription
impl PartialOrd for TokenDescription
source§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)