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
sourceimpl Clone for TokenDescriptor
impl Clone for TokenDescriptor
sourcefn clone(&self) -> TokenDescriptor
fn clone(&self) -> TokenDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TokenDescriptor
impl Debug for TokenDescriptor
sourceimpl Hash for TokenDescriptor
impl Hash for TokenDescriptor
sourceimpl PartialEq<TokenDescriptor> for TokenDescriptor
impl PartialEq<TokenDescriptor> for TokenDescriptor
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TokenDescriptor) -> bool
fn ne(&self, other: &TokenDescriptor) -> bool
This method tests for !=
.
sourceimpl PartialOrd<TokenDescriptor> for TokenDescriptor
impl PartialOrd<TokenDescriptor> for TokenDescriptor
sourcefn partial_cmp(&self, other: &TokenDescriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenDescriptor) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more