pub enum Token {
Block(Block, Span),
RawComment(RawComment, Span),
RawStatement(RawStatement, Span),
Comment(Comment, Span),
Parameters(Parameters, Span),
DoubleQuoteString(DoubleQuoteString, Span),
SingleQuoteString(SingleQuoteString, Span),
Array(Array, Span),
Link(Link, Span),
}Expand description
Enumeration of the token types.
Variants§
Block(Block, Span)
Block token.
RawComment(RawComment, Span)
Raw comment token.
RawStatement(RawStatement, Span)
Raw statement token.
Comment(Comment, Span)
Comment token.
Parameters(Parameters, Span)
Token for call parameters.
DoubleQuoteString(DoubleQuoteString, Span)
Token for a double-quoted string literal.
SingleQuoteString(SingleQuoteString, Span)
Token for a single-quoted string literal.
Array(Array, Span)
Token for a raw square bracket literal.
Link(Link, Span)
Token for links.
Implementations§
Trait Implementations§
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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