#[repr(u32)]pub enum ValueType {
Ref = 0,
Boolean = 1,
Instant = 2,
Long = 3,
Double = 4,
String = 5,
Keyword = 6,
Uuid = 7,
Bytes = 8,
}Expand description
The attribute of each Mentat assertion has a :db/valueType constraining the value to a particular set. Mentat recognizes the following :db/valueType values.
Variants§
Implementations§
Source§impl ValueType
impl ValueType
pub fn into_keyword(self) -> Keyword
pub fn from_keyword(keyword: &Keyword) -> Option<ValueType>
pub fn into_typed_value(self) -> TypedValue
pub fn into_edn_value(self) -> Value
pub fn is_numeric(self) -> bool
Trait Implementations§
impl Copy for ValueType
impl EnumSetType for ValueType
impl Eq for ValueType
Source§impl Ord for ValueType
impl Ord for ValueType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
Source§impl SQLValueType for ValueType
impl SQLValueType for ValueType
Source§fn accommodates_integer(&self, int: i64) -> bool
fn accommodates_integer(&self, int: i64) -> bool
Returns true if the provided integer is in the SQLite value space of this type. For
example, 1 is how we encode true.
Source§fn sql_representation(&self) -> (i32, Option<SQLTypeAffinity>)
fn sql_representation(&self) -> (i32, Option<SQLTypeAffinity>)
Return a pair of the ValueTypeTag for this value type, and the SQLTypeAffinity required
to distinguish it from any other types that share the same tag. Read more
fn value_type_tag(&self) -> i32
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueType
impl UnwindSafe for ValueType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more