pub enum Value {
Integer(i64),
Float(f64),
Text(String),
Boolean(bool),
DateTime(i64),
Date(i64),
Time(String),
Null,
}
Variants§
Implementations§
source§impl Value
impl Value
pub fn equals(&self, other: &Self) -> bool
pub fn compare(&self, other: &Self) -> Ordering
pub fn plus(&self, other: &Value) -> Result<Value, String>
pub fn minus(&self, other: &Value) -> Result<Value, String>
pub fn mul(&self, other: &Value) -> Result<Value, String>
pub fn div(&self, other: &Value) -> Result<Value, String>
pub fn modulus(&self, other: &Value) -> Result<Value, String>
pub fn data_type(&self) -> DataType
pub fn as_int(&self) -> i64
pub fn as_float(&self) -> f64
pub fn as_text(&self) -> String
pub fn as_bool(&self) -> bool
pub fn as_date_time(&self) -> i64
pub fn as_date(&self) -> i64
pub fn as_time(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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