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
sourceimpl Clone for PartialToken
impl Clone for PartialToken
sourcefn clone(&self) -> PartialToken
fn clone(&self) -> PartialToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PartialToken
impl Debug for PartialToken
sourceimpl Display for PartialToken
impl Display for PartialToken
sourceimpl PartialEq<PartialToken> for PartialToken
impl PartialEq<PartialToken> for PartialToken
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PartialToken) -> bool
fn ne(&self, other: &PartialToken) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more