Enum rustc_parse::parser::TokenDescription
source · [−]pub enum TokenDescription {
ReservedIdentifier,
Keyword,
ReservedKeyword,
DocComment,
}
Variants
ReservedIdentifier
Keyword
ReservedKeyword
DocComment
Implementations
sourceimpl TokenDescription
impl TokenDescription
pub fn from_token(token: &Token) -> Option<Self>
Trait Implementations
sourceimpl Clone for TokenDescription
impl Clone for TokenDescription
sourcefn clone(&self) -> TokenDescription
fn clone(&self) -> TokenDescription
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 moresourceimpl PartialEq<TokenDescription> for TokenDescription
impl PartialEq<TokenDescription> for TokenDescription
sourcefn eq(&self, other: &TokenDescription) -> bool
fn eq(&self, other: &TokenDescription) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
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