[−][src]Enum ketos::lexer::Token
Represents a single unit of code input.
Variants
Left parenthesis (
Right parenthesis )
DocComment(&'lex str)
A series of line comments beginning with ;;
,
used to document declared values.
Float(&'lex str)
Floating point literal
Integer literal in a given radix
Ratio(&'lex str)
Ratio literal
Char(&'lex str)
Character literal
String(&'lex str)
String literal
Byte(&'lex str)
Byte literal
Bytes(&'lex str)
Byte string literal
Path(&'lex str)
Path literal
Name(&'lex str)
Identifier name
Keyword(&'lex str)
Identifier keyword
Backtick quote `
Comma ,
Comma followed by at ,@
Single-quote '
End of input stream
Methods
impl<'lex> Token<'lex>
[src]
Trait Implementations
impl<'lex> Clone for Token<'lex>
[src]
impl<'lex> Copy for Token<'lex>
[src]
impl<'lex> Debug for Token<'lex>
[src]
impl<'lex> Eq for Token<'lex>
[src]
impl<'lex> PartialEq<Token<'lex>> for Token<'lex>
[src]
impl<'lex> StructuralEq for Token<'lex>
[src]
impl<'lex> StructuralPartialEq for Token<'lex>
[src]
Auto Trait Implementations
impl<'lex> RefUnwindSafe for Token<'lex>
impl<'lex> Send for Token<'lex>
impl<'lex> Sync for Token<'lex>
impl<'lex> Unpin for Token<'lex>
impl<'lex> UnwindSafe for Token<'lex>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,