Enum saikoro::operator::UnaryOpToken
source · pub enum UnaryOpToken {
Plus,
Minus,
Dice,
}
Expand description
An enum representing a token which corresponds to a UnaryOperator
Variants§
Plus
Represents the unary plus (+(expr)
)
Minus
Represents the unary minus (-(expr)
)
Dice
Represents the unary dice roll operator (d(expr)
)
Trait Implementations§
source§impl Clone for UnaryOpToken
impl Clone for UnaryOpToken
source§fn clone(&self) -> UnaryOpToken
fn clone(&self) -> UnaryOpToken
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 UnaryOpToken
impl Debug for UnaryOpToken
source§impl From<UnaryOpToken> for UnaryOperator
impl From<UnaryOpToken> for UnaryOperator
source§fn from(value: UnaryOpToken) -> Self
fn from(value: UnaryOpToken) -> Self
Converts to this type from the input type.
source§impl PartialEq for UnaryOpToken
impl PartialEq for UnaryOpToken
source§fn eq(&self, other: &UnaryOpToken) -> bool
fn eq(&self, other: &UnaryOpToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<OpToken> for UnaryOpToken
impl TryFrom<OpToken> for UnaryOpToken
impl Copy for UnaryOpToken
impl Eq for UnaryOpToken
impl StructuralPartialEq for UnaryOpToken
Auto Trait Implementations§
impl Freeze for UnaryOpToken
impl RefUnwindSafe for UnaryOpToken
impl Send for UnaryOpToken
impl Sync for UnaryOpToken
impl Unpin for UnaryOpToken
impl UnwindSafe for UnaryOpToken
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