Enum mentat_core::TypedValue [] [src]

pub enum TypedValue {
    Ref(Entid),
    Boolean(bool),
    Long(i64),
    Double(OrderedFloat<f64>),
    Instant(DateTime<Utc>),
    String(ValueRc<String>),
    Keyword(ValueRc<Keyword>),
    Uuid(Uuid),
}

Represents a value that can be stored in a Mentat store.

Variants

Methods

impl TypedValue
[src]

Returns true if the provided type is Some and matches this value's type, or if the provided type is None.

Construct a new TypedValue::Keyword instance by cloning the provided values and wrapping them in a new ValueRc. This is expensive, so this might be best limited to tests.

Construct a new TypedValue::String instance by cloning the provided value and wrapping it in a new ValueRc. This is expensive, so this might be best limited to tests.

Construct a new TypedValue::Instant instance from the provided microsecond timestamp.

impl TypedValue
[src]

Trait Implementations

impl From<KnownEntid> for TypedValue
[src]

Performs the conversion.

impl Clone for TypedValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TypedValue
[src]

Formats the value using the given formatter. Read more

impl Eq for TypedValue
[src]

impl Hash for TypedValue
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for TypedValue
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for TypedValue
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for TypedValue
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<bool> for TypedValue
[src]

Performs the conversion.

impl From<DateTime<Utc>> for TypedValue
[src]

Truncate the provided DateTime to microsecond precision, and return the corresponding TypedValue::Instant.

Performs the conversion.

impl From<Uuid> for TypedValue
[src]

Performs the conversion.

impl<'a> From<&'a str> for TypedValue
[src]

Performs the conversion.

impl From<Arc<String>> for TypedValue
[src]

Performs the conversion.

impl From<Rc<String>> for TypedValue
[src]

Performs the conversion.

impl From<Box<String>> for TypedValue
[src]

Performs the conversion.

impl From<String> for TypedValue
[src]

Performs the conversion.

impl From<Arc<Keyword>> for TypedValue
[src]

Performs the conversion.

impl From<Rc<Keyword>> for TypedValue
[src]

Performs the conversion.

impl From<Keyword> for TypedValue
[src]

Performs the conversion.

impl From<u32> for TypedValue
[src]

Performs the conversion.

impl From<i32> for TypedValue
[src]

Performs the conversion.

impl From<f64> for TypedValue
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for TypedValue

impl Sync for TypedValue