Enum proclet::TokenTreeKind
source · pub enum TokenTreeKind {
Group,
Ident,
Punct,
Literal,
}
Expand description
The kind of a TokenTree
. This is like the enum in proc_macro*::TokenTree
, but
without any contained data. It doesn’t depend on which proc-macro crate you use.
Variants§
Trait Implementations§
source§impl Clone for TokenTreeKind
impl Clone for TokenTreeKind
source§fn clone(&self) -> TokenTreeKind
fn clone(&self) -> TokenTreeKind
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 TokenTreeKind
impl Debug for TokenTreeKind
source§impl PartialEq for TokenTreeKind
impl PartialEq for TokenTreeKind
source§fn eq(&self, other: &TokenTreeKind) -> bool
fn eq(&self, other: &TokenTreeKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TokenTreeKind
impl Eq for TokenTreeKind
impl StructuralPartialEq for TokenTreeKind
Auto Trait Implementations§
impl Freeze for TokenTreeKind
impl RefUnwindSafe for TokenTreeKind
impl Send for TokenTreeKind
impl Sync for TokenTreeKind
impl Unpin for TokenTreeKind
impl UnwindSafe for TokenTreeKind
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