Enum badlang_parser::StackValue
source · pub enum StackValue {
Integer(i64),
Float(f64),
String(String),
Bool(bool),
}Variants§
Implementations§
source§impl StackValue
impl StackValue
pub fn loose_equal(&self, other: &Self) -> bool
pub fn strict_equal(&self, other: &Self) -> bool
Trait Implementations§
source§impl Add for StackValue
impl Add for StackValue
source§impl BitAnd for StackValue
impl BitAnd for StackValue
source§impl BitOr for StackValue
impl BitOr for StackValue
source§impl BitXor for StackValue
impl BitXor for StackValue
source§impl Clone for StackValue
impl Clone for StackValue
source§fn clone(&self) -> StackValue
fn clone(&self) -> StackValue
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 StackValue
impl Debug for StackValue
source§impl Display for StackValue
impl Display for StackValue
source§impl Div for StackValue
impl Div for StackValue
source§impl Mul for StackValue
impl Mul for StackValue
source§impl Not for StackValue
impl Not for StackValue
source§impl PartialEq for StackValue
impl PartialEq for StackValue
source§fn eq(&self, other: &StackValue) -> bool
fn eq(&self, other: &StackValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for StackValue
impl PartialOrd for StackValue
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 moresource§impl Shl for StackValue
impl Shl for StackValue
source§impl Shr for StackValue
impl Shr for StackValue
source§impl Sub for StackValue
impl Sub for StackValue
impl StructuralPartialEq for StackValue
Auto Trait Implementations§
impl Freeze for StackValue
impl RefUnwindSafe for StackValue
impl Send for StackValue
impl Sync for StackValue
impl Unpin for StackValue
impl UnwindSafe for StackValue
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more