pub enum ArithValue {
Int(i64),
Float(f64),
}Expand description
An evaluated arithmetic value: integer or float (mirrors v1 ArithVal).
Variants§
Trait Implementations§
Source§impl Clone for ArithValue
impl Clone for ArithValue
Source§fn clone(&self) -> ArithValue
fn clone(&self) -> ArithValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ArithValue
Source§impl Debug for ArithValue
impl Debug for ArithValue
Source§impl PartialEq for ArithValue
impl PartialEq for ArithValue
Source§fn eq(&self, other: &ArithValue) -> bool
fn eq(&self, other: &ArithValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArithValue
Auto Trait Implementations§
impl Freeze for ArithValue
impl RefUnwindSafe for ArithValue
impl Send for ArithValue
impl Sync for ArithValue
impl Unpin for ArithValue
impl UnsafeUnpin for ArithValue
impl UnwindSafe for ArithValue
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