Enum tusk_lexer::TokenType [−][src]
pub enum TokenType {}Show variants
String, Integer, Float, Identifier, Variable, Function, ShortFunction, If, Else, While, Do, For, Foreach, As, Class, Abstract, Extends, Implements, Clone, Try, Catch, Const, Public, Protected, Private, Final, Static, Trait, Switch, Continue, Break, Case, Yield, From, Callable, Default, Declare, Echo, ElseIf, Empty, Exit, Die, Global, Goto, Include, IncludeOnce, Require, RequireOnce, Isset, Namespace, New, Print, Return, Throw, And, Or, BitwiseAnd, BitwiseOr, Plus, Minus, Asterisk, Slash, Percent, Power, PlusEquals, MinusEquals, AsteriskEquals, SlashEquals, PercentEquals, PowerEquals, Increment, Decrement, Equals, EqualsEquals, EqualsEqualsEquals, NotEquals, NotEqualsEquals, GreaterThan, LessThan, GreaterThanEquals, LessThanEquals, Arrow, DoubleArrow, NullsafeArrow, True, False, Null, OpenTag, Comma, SemiColon, Colon, Period, LeftParen, RightParen, LeftBrace, RightBrace, LeftBracket, RightBracket, SingleLineComment, BlockComment, DocBlockComment, Error,
Variants
Trait Implementations
impl<'s> Logos<'s> for TokenType
[src]
impl<'s> Logos<'s> for TokenType
[src]type Extras = Extras
type Extras = Extras
Associated type Extras
for the particular lexer. This can be set using
#[logos(extras = MyExtras)]
and accessed inside callbacks. Read more
type Source = str
type Source = str
Source type this token can be lexed from. This will default to str
,
unless one of the defined patterns explicitly uses non-unicode byte values
or byte slices, in which case that implementation will use [u8]
. Read more
fn lex(lex: &mut Lexer<'s, Self>)
[src]
fn lex(lex: &mut Lexer<'s, Self>)
[src]The heart of Logos. Called by the Lexer
. The implementation for this function
is generated by the logos-derive
crate. Read more
impl Copy for TokenType
[src]
impl StructuralPartialEq for TokenType
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more