Enum mentat_ffi::Binding [] [src]

pub enum Binding {
    Scalar(TypedValue),
    Vec(Arc<Vec<Binding>>),
    Map(Arc<StructuredMap>),
}

The values bound in a query specification can be:

The Binding enum defines these three options.

Datomic also supports structured inputs; at present Mentat does not, but this type would also serve that purpose.

Note that maps are not ordered, and so Binding is neither Ord nor PartialOrd.

Variants

Methods

impl Binding
[src]

impl Binding
[src]

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

impl Binding
[src]

Trait Implementations

impl Clone for Binding
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Vec<Binding>> for Binding
[src]

Performs the conversion.

impl<T> From<T> for Binding where
    T: Into<TypedValue>, 
[src]

Performs the conversion.

impl From<StructuredMap> for Binding
[src]

Performs the conversion.

impl Eq for Binding
[src]

impl PartialEq<Binding> for Binding
[src]

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

This method tests for !=.

impl Debug for Binding
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Binding

impl Sync for Binding