pub enum TaggedToktr<T> {
}
Expand description
Token tree with a tag.
Variants§
Import(T)
import
keyword.
As(T)
as
keyword.
Class(T)
class
keyword.
Colon(T)
:
keyword.
Eq(T)
=
keyword.
Comma(T)
,
keyword.
Dot(T)
.
keyword.
Newline(T)
\n
newline.
Null(T)
null
keyword.
Identifier(T, Identifier)
An identifier.
IntegerLiteral(T, u64)
An integer literal.
Shl(T)
<<
operator.
Mul(T)
*
operator.
BracketBlock(T, Box<NodeData<T>>)
A bracket block.
ParenBlock(T, Box<NodeData<T>>)
A parenthesis block.
IndentBlock(T, Box<NodeData<T>>)
An indent block.
DocString(T, String)
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for TaggedToktr<T>
impl<T: Clone> Clone for TaggedToktr<T>
Source§fn clone(&self) -> TaggedToktr<T>
fn clone(&self) -> TaggedToktr<T>
Returns a duplicate 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<T: Debug> Debug for TaggedToktr<T>
impl<T: Debug> Debug for TaggedToktr<T>
Source§impl<T: PartialEq> PartialEq for TaggedToktr<T>
impl<T: PartialEq> PartialEq for TaggedToktr<T>
impl<T: Eq> Eq for TaggedToktr<T>
impl<T> StructuralPartialEq for TaggedToktr<T>
Auto Trait Implementations§
impl<T> Freeze for TaggedToktr<T>where
T: Freeze,
impl<T> RefUnwindSafe for TaggedToktr<T>where
T: RefUnwindSafe,
impl<T> Send for TaggedToktr<T>where
T: Send,
impl<T> Sync for TaggedToktr<T>where
T: Sync,
impl<T> Unpin for TaggedToktr<T>where
T: Unpin,
impl<T> UnwindSafe for TaggedToktr<T>where
T: UnwindSafe,
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