Enum candid::parser::token::Token [−][src]
pub enum Token {}Show variants
StartComment, UnexpectedToken, Equals, LParen, RParen, LBrace, RBrace, Semi, Comma, Dot, Colon, Arrow, Null, Vec, Record, Variant, Func, Service, Oneway, Query, Blob, Type, Import, Opt, TestEqual, NotEqual, NotDecode, Principal, Id(String), StartString, Text(String), Sign(char), Decimal(String), Hex(String), Float(String), Boolean(bool),
Variants
Id(String)
Text(String)
Sign(char)
Decimal(String)
Hex(String)
Float(String)
Boolean(bool)
Trait Implementations
impl<'s> Logos<'s> for Token
[src]
impl<'s> Logos<'s> for Token
[src]type Extras = ()
type 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 Ord for Token
[src]
impl Ord for Token
[src]impl PartialOrd<Token> for Token
[src]
impl PartialOrd<Token> for Token
[src]fn partial_cmp(&self, other: &Token) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Token) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Token
[src]
impl StructuralEq for Token
[src]
impl StructuralPartialEq for Token
[src]
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
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