Struct core_traits::StructuredMap [] [src]

pub struct StructuredMap(pub IndexMap<ValueRc<Keyword>, Binding>);

A pull expression expands a binding into a structure. The returned structure associates attributes named in the input or retrieved from the store with values. This association is a StructuredMap.

Note that 'attributes' in Datomic's case can mean:

We entirely support the former, and partially support the latter -- you can alias using a different keyword only.

Methods

impl StructuredMap
[src]

[src]

Methods from Deref<Target = IndexMap<ValueRc<Keyword>, Binding>>

[src]

Return the number of key-value pairs in the map.

Computes in O(1) time.

[src]

Returns true if the map contains no elements.

Computes in O(1) time.

Important traits for &'a mut R
[src]

Return a reference to the map's BuildHasher.

[src]

Computes in O(1) time.

Important traits for Iter<'a, K, V>
[src]

Return an iterator over the key-value pairs of the map, in their order

Important traits for Keys<'a, K, V>
[src]

Return an iterator over the keys of the map, in their order

Important traits for Values<'a, K, V>
[src]

Return an iterator over the values of the map, in their order

[src]

Return true if an equivalent to key exists in the map.

Computes in O(1) time (average).

[src]

Return a reference to the value stored for key, if it is present, else None.

Computes in O(1) time (average).

[src]

Return item index, key and value

[src]

Get a key-value pair by index

Valid indices are 0 <= index < self.len()

Computes in O(1) time.

Trait Implementations

impl From<StructuredMap> for Binding
[src]

[src]

Performs the conversion.

impl Clone for StructuredMap
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StructuredMap
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for StructuredMap
[src]

[src]

Returns the "default value" for a type. Read more

impl Eq for StructuredMap
[src]

impl PartialEq for StructuredMap
[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 Deref for StructuredMap
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl From<IndexMap<ValueRc<Keyword>, Binding>> for StructuredMap
[src]

[src]

Performs the conversion.

impl<T> From<Vec<(Keyword, T)>> for StructuredMap where
    T: Into<Binding>, 
[src]

[src]

Performs the conversion.