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

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

keys: Vec<K>

The keys of the layer.

offs: Vec<usize>

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.

vals: L

The ranges of values associated with the keys.

Trait Implementations

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

type Item = (K, L::Item)

The type of item from which the type is constructed.

type Cursor = OrderedCursor<L>

The type of cursor used to navigate the type.

type MergeBuilder = OrderedBuilder<K, L::MergeBuilder>

The type used to merge instances of the type together.

type TupleBuilder = OrderedBuilder<K, L::TupleBuilder>

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

fn cursor(&self) -> Self::Cursor[src]

Returns a cursor capable of navigating the collection.

fn merge(&self, other: &Self) -> Self[src]

Merges two collections into a third. Read more

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

type Key = K

The type revealed by the cursor.

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

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

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Data for T where
    T: 'static + Send + Sync + Any + Abomonation

impl<T> Data for T where
    T: 'static + Clone
[src]

impl<T> ExchangeData for T where
    T: Data + Data, 
[src]