Struct differential_dataflow::trace::layers::ordered::OrderedLayer[][src]

pub struct OrderedLayer<K: Ord, L> {
    pub keys: Vec<K>,
    pub offs: Vec<usize>,
    pub vals: L,
}

A level of the trie, with keys and offsets into a lower layer.

In this representation, the values for keys[i] are found at vals[offs[i] .. offs[i+1]].

Fields

The keys of the layer.

The offsets associate with each key.

The bounds for keys[i] are (offs[i], offs[i+1]). The offset array is guaranteed to be one element longer than the keys array, ensuring that these accesses do not panic.

The ranges of values associated with the keys.

Trait Implementations

impl<K: Debug + Ord, L: Debug> Debug for OrderedLayer<K, L>
[src]

Formats the value using the given formatter. Read more

impl<K: Eq + Ord, L: Eq> Eq for OrderedLayer<K, L>
[src]

impl<K: PartialEq + Ord, L: PartialEq> PartialEq for OrderedLayer<K, L>
[src]

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

This method tests for !=.

impl<K: Clone + Ord, L: Clone> Clone for OrderedLayer<K, L>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<K: Ord, L> Abomonation for OrderedLayer<K, L> where
    Vec<K>: Abomonation,
    K: Abomonation,
    L: Abomonation
[src]

Write any additional information about &self beyond its binary representation. Read more

Reports the number of further bytes required to entomb self.

Recover any information for &mut self not evident from its binary representation. Read more

impl<K: Ord + Clone, L: Trie> Trie for OrderedLayer<K, L>
[src]

The type of item from which the type is constructed.

The type of cursor used to navigate the type.

The type used to merge instances of the type together.

The type used to assemble instances of the type from its Items.

The number of distinct keys, as distinct from the total number of tuples.

The total number of tuples in the collection.

Returns a cursor over a range of data, commonly used by others to restrict navigation to sub-collections. Read more

Returns a cursor capable of navigating the collection.

Merges two collections into a third. Read more

impl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
[src]

The type revealed by the cursor.

Reveals the current key.

Advances the cursor by one element.

Advances the cursor until the location where key would be expected.

Returns true if the cursor points at valid data. Returns false if the cursor is exhausted.

Rewinds the cursor to its initial state.

Repositions the cursor to a different range of values.

Auto Trait Implementations

impl<K, L> Send for OrderedLayer<K, L> where
    K: Send,
    L: Send

impl<K, L> Sync for OrderedLayer<K, L> where
    K: Sync,
    L: Sync