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§impl PartialOrd for TokenDescriptor
impl PartialOrd for TokenDescriptor
source§impl Serialize for TokenDescriptor
impl Serialize for TokenDescriptor
impl Eq for TokenDescriptor
impl StructuralPartialEq for TokenDescriptor
Auto Trait Implementations§
impl Freeze for TokenDescriptor
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
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
)