Enum core_traits::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]

[src]

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

[src]

[src]

[src]

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.

[src]

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.

[src]

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl TransactableValueMarker for TypedValue
[src]

TypedValue is the value type for programmatic use in transaction builders.

impl Clone for TypedValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TypedValue
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for TypedValue
[src]

impl Hash for TypedValue
[src]

[src]

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

1.3.0
[src]

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

impl Ord for TypedValue
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for TypedValue
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

[src]

This method tests for !=.

impl From<KnownEntid> for TypedValue
[src]

[src]

Performs the conversion.

impl From<bool> for TypedValue
[src]

[src]

Performs the conversion.

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

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

[src]

Performs the conversion.

impl From<Uuid> for TypedValue
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<String> for TypedValue
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<Keyword> for TypedValue
[src]

[src]

Performs the conversion.

impl From<u32> for TypedValue
[src]

[src]

Performs the conversion.

impl From<i32> for TypedValue
[src]

[src]

Performs the conversion.

impl From<f64> for TypedValue
[src]

[src]

Performs the conversion.