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

pub struct OrderedLayer<K, L, O = usize> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
{ pub keys: Vec<K>, pub offs: Vec<O>, 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<O>

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, L, O> Trie for OrderedLayer<K, L, O> where
    K: Ord + Clone,
    L: Trie,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[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, O>

The type used to merge instances of the type together.

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

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

impl<K, L, O> Cursor<OrderedLayer<K, L, O>> for OrderedCursor<L> where
    K: Ord,
    L: Trie,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

type Key = K

The type revealed by the cursor.

impl<K: Clone, L: Clone, O: Clone> Clone for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

impl<K: Eq, L: Eq, O: Eq> Eq for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

impl<K: PartialEq, L: PartialEq, O: PartialEq> PartialEq<OrderedLayer<K, L, O>> for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

impl<K: Debug, L: Debug, O: Debug> Debug for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

impl<K, L, O> StructuralPartialEq for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

impl<K, L, O> StructuralEq for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug
[src]

impl<K, L, O> Abomonation for OrderedLayer<K, L, O> where
    K: Ord,
    O: OrdOffset,
    <O as TryFrom<usize>>::Error: Debug,
    <O as TryInto<usize>>::Error: Debug,
    Vec<K>: Abomonation,
    K: Abomonation,
    Vec<O>: Abomonation,
    O: Abomonation,
    L: Abomonation
[src]

Auto Trait Implementations

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

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

impl<K, L, O> Unpin for OrderedLayer<K, L, O> where
    K: Unpin,
    L: Unpin,
    O: Unpin

impl<K, L, O> UnwindSafe for OrderedLayer<K, L, O> where
    K: UnwindSafe,
    L: UnwindSafe,
    O: UnwindSafe

impl<K, L, O> RefUnwindSafe for OrderedLayer<K, L, O> where
    K: RefUnwindSafe,
    L: RefUnwindSafe,
    O: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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]