Enum rustc_parse::parser::TokenDescription
source · pub enum TokenDescription {
ReservedIdentifier,
Keyword,
ReservedKeyword,
DocComment,
}
Variants§
Implementations§
source§impl TokenDescription
impl TokenDescription
pub fn from_token(token: &Token) -> Option<Self>
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 PartialEq<TokenDescription> for TokenDescription
impl PartialEq<TokenDescription> 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 ==
.impl Copy for TokenDescription
impl Eq for TokenDescription
impl StructuralEq for TokenDescription
impl StructuralPartialEq for TokenDescription
Auto Trait Implementations§
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
ReservedIdentifier
: 0 bytesKeyword
: 0 bytesReservedKeyword
: 0 bytesDocComment
: 0 bytes