Struct lang_util::token::TokenDescriptor
source · pub struct TokenDescriptor {
pub variant_name: &'static str,
pub parser_token: &'static str,
pub kinds: &'static [&'static str],
}
Expand description
Information about a known token
Fields§
§variant_name: &'static str
Variant name
parser_token: &'static str
Parser token name
kinds: &'static [&'static str]
List of kinds this token belongs to
Implementations§
Trait Implementations§
source§impl Clone for TokenDescriptor
impl Clone for TokenDescriptor
source§fn clone(&self) -> TokenDescriptor
fn clone(&self) -> TokenDescriptor
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 TokenDescriptor
impl Debug for TokenDescriptor
source§impl Hash for TokenDescriptor
impl Hash for TokenDescriptor
source§impl PartialEq for TokenDescriptor
impl PartialEq for TokenDescriptor
source§fn eq(&self, other: &TokenDescriptor) -> bool
fn eq(&self, other: &TokenDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TokenDescriptor
impl PartialOrd for TokenDescriptor
source§fn partial_cmp(&self, other: &TokenDescriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenDescriptor) -> 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 moreimpl Eq for TokenDescriptor
impl StructuralEq for TokenDescriptor
impl StructuralPartialEq for TokenDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for TokenDescriptor
impl Send for TokenDescriptor
impl Sync for TokenDescriptor
impl Unpin for TokenDescriptor
impl UnwindSafe for TokenDescriptor
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