pub enum Token {
Void,
EOF,
Char(CharClass),
BuiltinChar(fn(ch: char) -> bool),
Chars(CharClass),
BuiltinChars(fn(ch: char) -> bool),
Match(String),
Touch(String),
}
Variants§
Void
EOF
Char(CharClass)
BuiltinChar(fn(ch: char) -> bool)
Chars(CharClass)
BuiltinChars(fn(ch: char) -> bool)
Match(String)
Touch(String)
Implementations§
Trait Implementations§
source§impl Object for Token
impl Object for Token
source§fn is_callable(&self, without_arguments: bool) -> bool
fn is_callable(&self, without_arguments: bool) -> bool
Check whether the object is callable.
source§fn is_consuming(&self) -> bool
fn is_consuming(&self) -> bool
Check whether the object is consuming
source§fn is_nullable(&self) -> bool
fn is_nullable(&self) -> bool
Check whether the object is nullable
source§fn call(
&self,
context: Option<&mut Context<'_, '_, '_, '_>>,
args: Vec<RefValue>,
nargs: Option<Dict>
) -> Result<Accept, Reject>
fn call( &self, context: Option<&mut Context<'_, '_, '_, '_>>, args: Vec<RefValue>, nargs: Option<Dict> ) -> Result<Accept, Reject>
Call object with optional context, arguments and named arguments set.
source§fn is_mutable(&self) -> bool
fn is_mutable(&self) -> bool
Check whether the object is mutable in itself. Read more
source§fn is_hashable(&self) -> bool
fn is_hashable(&self) -> bool
Check whether the object is hashable. Read more
source§impl PartialEq for Token
impl PartialEq for Token
source§impl PartialOrd for Token
impl PartialOrd for Token
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Token
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§
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