pub enum Number {
Integer(i64),
UnsignedInteger(u64),
Float(f64),
}Expand description
Number.
Variants§
Implementations§
Source§impl Number
impl Number
Sourcepub fn add(self, right: Self, same: bool) -> Result<Self, DispatchError>
pub fn add(self, right: Self, same: bool) -> Result<Self, DispatchError>
Math operation.
If same is true will return an error if the types are not the same.
Sourcepub fn sub(self, right: Self, same: bool) -> Result<Self, DispatchError>
pub fn sub(self, right: Self, same: bool) -> Result<Self, DispatchError>
Math operation.
If same is true will return an error if the types are not the same.
Sourcepub fn mul(self, right: Self, same: bool) -> Result<Self, DispatchError>
pub fn mul(self, right: Self, same: bool) -> Result<Self, DispatchError>
Math operation.
If same is true will return an error if the types are not the same.
Sourcepub fn div(self, right: Self, same: bool) -> Result<Self, DispatchError>
pub fn div(self, right: Self, same: bool) -> Result<Self, DispatchError>
Math operation.
If same is true will return an error if the types are not the same.
Trait Implementations§
impl Copy for Number
Source§impl Into<Expression> for Number
impl Into<Expression> for Number
Source§fn into(self) -> Expression
fn into(self) -> Expression
Converts this type into the (usually inferred) input type.
Source§impl TryFrom<&Expression> for Number
impl TryFrom<&Expression> for Number
Source§impl TryFrom<Expression> for Number
impl TryFrom<Expression> for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnsafeUnpin for Number
impl UnwindSafe for Number
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