Enum evalexpr::PartialToken
source · pub enum PartialToken {
Show 15 variants
Token(Token),
Literal(String),
Plus,
Minus,
Star,
Slash,
Percent,
Hat,
Whitespace,
Eq,
ExclamationMark,
Gt,
Lt,
Ampersand,
VerticalBar,
}
Expand description
A partial token is an input character whose meaning depends on the characters around it.
Variants§
Token(Token)
A partial token that unambiguously maps to a single token.
Literal(String)
A partial token that is a literal.
Plus
A plus character ‘+’.
Minus
A minus character ‘-’.
Star
A star character ‘*’.
Slash
A slash character ‘/’.
Percent
A percent character ‘%’.
Hat
A hat character ‘^’.
Whitespace
A whitespace character, e.g. ’ ’.
Eq
An equal-to character ‘=’.
ExclamationMark
An exclamation mark character ‘!’.
Gt
A greater-than character ‘>’.
Lt
A lower-than character ‘<’.
Ampersand
An ampersand character ‘&’.
VerticalBar
A vertical bar character ‘|’.
Trait Implementations§
source§impl Clone for PartialToken
impl Clone for PartialToken
source§fn clone(&self) -> PartialToken
fn clone(&self) -> PartialToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PartialToken
impl Debug for PartialToken
source§impl Display for PartialToken
impl Display for PartialToken
source§impl PartialEq<PartialToken> for PartialToken
impl PartialEq<PartialToken> for PartialToken
source§fn eq(&self, other: &PartialToken) -> bool
fn eq(&self, other: &PartialToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PartialToken
Auto Trait Implementations§
impl RefUnwindSafe for PartialToken
impl Send for PartialToken
impl Sync for PartialToken
impl Unpin for PartialToken
impl UnwindSafe for PartialToken
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