pub(crate) enum NumberValue {
Int(i64),
Float(f64),
}
Expand description
Similar to the object type NumberType, but contains a float instead of a reference to a float. This makes it easier to construct and mutate.
Variants§
Trait Implementations§
Source§impl Clone for NumberValue
impl Clone for NumberValue
Source§fn clone(&self) -> NumberValue
fn clone(&self) -> NumberValue
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 IntoObject for NumberValue
impl IntoObject for NumberValue
Source§impl PartialEq for NumberValue
impl PartialEq for NumberValue
Source§impl PartialOrd for NumberValue
impl PartialOrd for NumberValue
Source§impl Debug for NumberValue
impl Debug for NumberValue
Source§impl Add for NumberValue
impl Add for NumberValue
Source§impl Div for NumberValue
impl Div for NumberValue
Source§impl Mul for NumberValue
impl Mul for NumberValue
Source§impl Neg for NumberValue
impl Neg for NumberValue
Source§impl Rem for NumberValue
impl Rem for NumberValue
Source§impl Sub for NumberValue
impl Sub for NumberValue
impl Copy for NumberValue
impl StructuralPartialEq for NumberValue
Auto Trait Implementations§
impl Freeze for NumberValue
impl RefUnwindSafe for NumberValue
impl Send for NumberValue
impl Sync for NumberValue
impl Unpin for NumberValue
impl UnwindSafe for NumberValue
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