Struct TimeValue

Source
pub struct TimeValue {
    pub value: String,
}

Fields§

§value: String

Implementations§

Source§

impl TimeValue

Source

pub fn new(time: String) -> Self

Trait Implementations§

Source§

impl Clone for TimeValue

Source§

fn clone(&self) -> TimeValue

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Value for TimeValue

Source§

fn literal(&self) -> String

Return the literal representation for this Value
Source§

fn equals(&self, other: &Box<dyn Value>) -> bool

Return if other Value is equal or not to current value
Source§

fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering>

Return the order between Value and the current value, or None if they can’t be ordered
Source§

fn data_type(&self) -> Box<dyn DataType>

Return the DataType for the current Value
Source§

fn as_any(&self) -> &dyn Any

Return the current value as dynamic Any
Source§

fn eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary = operator and return new Value represent the result or Exception message as String
Source§

fn group_eq_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary = [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn bang_eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary != or <> operator and return new Value represent the result or Exception message as String
Source§

fn group_bang_eq_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary != or <> [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn gt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary > operator and return new Value represent the result or Exception message as String
Source§

fn group_gt_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary > [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary >= operator and return new Value represent the result or Exception message as String
Source§

fn group_gte_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary >= [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary < operator and return new Value represent the result or Exception message as String
Source§

fn group_lt_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary < [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary <= operator and return new Value represent the result or Exception message as String
Source§

fn group_lte_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary <= [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn add_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary = operator and return new Value represent the result or Exception message as String
Source§

fn sub_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary - operator and return new Value represent the result or Exception message as String
Source§

fn mul_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary * operator and return new Value represent the result or Exception message as String
Source§

fn div_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary / operator and return new Value represent the result or Exception message as String
Source§

fn rem_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary % operator and return new Value represent the result or Exception message as String
Source§

fn caret_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary ^ operator and return new Value represent the result or Exception message as String
Source§

fn or_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary | operator and return new Value represent the result or Exception message as String
Source§

fn and_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary & operator and return new Value represent the result or Exception message as String
Source§

fn xor_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary # operator and return new Value represent the result or Exception message as String
Source§

fn logical_or_op( &self, other: &Box<dyn Value>, ) -> Result<Box<dyn Value>, String>

Perform unary || or OR operator and return new Value represent the result or Exception message as String
Source§

fn logical_and_op( &self, other: &Box<dyn Value>, ) -> Result<Box<dyn Value>, String>

Perform unary && or AND operator and return new Value represent the result or Exception message as String
Source§

fn logical_xor_op( &self, other: &Box<dyn Value>, ) -> Result<Box<dyn Value>, String>

Perform unary XOR operator and return new Value represent the result or Exception message as String
Source§

fn shl_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary << operator and return new Value represent the result or Exception message as String
Source§

fn shr_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary >> operator and return new Value represent the result or Exception message as String
Source§

fn index_op(&self, index: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform unary [I] operator and return new Value represent the result or Exception message as String
Source§

fn slice_op( &self, start: &Option<Box<dyn Value>>, end: &Option<Box<dyn Value>>, ) -> Result<Box<dyn Value>, String>

Perform unary [S:E] operator and return new Value represent the result or Exception message as String
Source§

fn null_safe_eq_op( &self, other: &Box<dyn Value>, ) -> Result<Box<dyn Value>, String>

Perform unary <=> operator and return new Value represent the result or Exception message as String
Source§

fn group_null_safe_eq_op( &self, other: &Box<dyn Value>, group_op: &GroupComparisonOperator, ) -> Result<Box<dyn Value>, String>

Perform unary <=> [ALL|ANY|SOME] operator and return new Value represent the result or Exception message as String
Source§

fn not_op(&self) -> Result<Box<dyn Value>, String>

Perform unary NOT operator and return new Value represent the result or Exception message as String
Source§

fn neg_op(&self) -> Result<Box<dyn Value>, String>

Perform unary - operator and return new Value represent the result or Exception message as String
Source§

fn bang_op(&self) -> Result<Box<dyn Value>, String>

Perform unary ! operator and return new Value represent the result or Exception message as String
Source§

fn contains_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform @> operator and return new Value represent the result or Exception message as String
Source§

fn like_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform LIKE operator and return new Value represent the result or Exception message as String
Source§

fn glob_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform GLOB operator and return new Value represent the result or Exception message as String
Source§

fn regexp_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String>

Perform REGEXP operator and return new Value represent the result or Exception message as String
Source§

fn cast_op( &self, target_type: &Box<dyn DataType>, ) -> Result<Box<dyn Value>, String>

Perform Cast operator and return new Value represent the result or Exception message as String

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.