Struct differential_dataflow::trace::layers::ordered::OrderedLayer
source · Expand description
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: LThe ranges of values associated with the keys.
Trait Implementations
sourceimpl<K: Ord, L> Abomonation for OrderedLayer<K, L>where
Vec<K>: Abomonation,
K: Abomonation,
L: Abomonation,
impl<K: Ord, L> Abomonation for OrderedLayer<K, L>where
Vec<K>: Abomonation,
K: Abomonation,
L: Abomonation,
sourceimpl<K: Clone + Ord, L: Clone> Clone for OrderedLayer<K, L>
impl<K: Clone + Ord, L: Clone> Clone for OrderedLayer<K, L>
sourcefn clone(&self) -> OrderedLayer<K, L>
fn clone(&self) -> OrderedLayer<K, L>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
impl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
type Key = K
type Key = K
The type revealed by the cursor.
sourcefn key<'a>(&self, storage: &'a OrderedLayer<K, L>) -> &'a Self::Key
fn key<'a>(&self, storage: &'a OrderedLayer<K, L>) -> &'a Self::Key
Reveals the current key.
sourcefn step(&mut self, storage: &OrderedLayer<K, L>)
fn step(&mut self, storage: &OrderedLayer<K, L>)
Advances the cursor by one element.
sourcefn seek(&mut self, storage: &OrderedLayer<K, L>, key: &Self::Key)
fn seek(&mut self, storage: &OrderedLayer<K, L>, key: &Self::Key)
Advances the cursor until the location where
key would be expected.sourcefn valid(&self, _storage: &OrderedLayer<K, L>) -> bool
fn valid(&self, _storage: &OrderedLayer<K, L>) -> bool
Returns
true if the cursor points at valid data. Returns false if the cursor is exhausted.sourcefn rewind(&mut self, storage: &OrderedLayer<K, L>)
fn rewind(&mut self, storage: &OrderedLayer<K, L>)
Rewinds the cursor to its initial state.
sourcefn reposition(&mut self, storage: &OrderedLayer<K, L>, lower: usize, upper: usize)
fn reposition(&mut self, storage: &OrderedLayer<K, L>, lower: usize, upper: usize)
Repositions the cursor to a different range of values.
sourceimpl<K: PartialEq + Ord, L: PartialEq> PartialEq<OrderedLayer<K, L>> for OrderedLayer<K, L>
impl<K: PartialEq + Ord, L: PartialEq> PartialEq<OrderedLayer<K, L>> for OrderedLayer<K, L>
sourcefn eq(&self, other: &OrderedLayer<K, L>) -> bool
fn eq(&self, other: &OrderedLayer<K, L>) -> bool
sourceimpl<K: Ord + Clone, L: Trie> Trie for OrderedLayer<K, L>
impl<K: Ord + Clone, L: Trie> Trie for OrderedLayer<K, L>
type Cursor = OrderedCursor<L>
type Cursor = OrderedCursor<L>
The type of cursor used to navigate the type.
type MergeBuilder = OrderedBuilder<K, <L as Trie>::MergeBuilder>
type MergeBuilder = OrderedBuilder<K, <L as Trie>::MergeBuilder>
The type used to merge instances of the type together.
type TupleBuilder = OrderedBuilder<K, <L as Trie>::TupleBuilder>
type TupleBuilder = OrderedBuilder<K, <L as Trie>::TupleBuilder>
The type used to assemble instances of the type from its
Items.sourcefn keys(&self) -> usize
fn keys(&self) -> usize
The number of distinct keys, as distinct from the total number of tuples.
impl<K: Eq + Ord, L: Eq> Eq for OrderedLayer<K, L>
impl<K: Ord, L> StructuralEq for OrderedLayer<K, L>
impl<K: Ord, L> StructuralPartialEq for OrderedLayer<K, L>
Auto Trait Implementations
impl<K, L> RefUnwindSafe for OrderedLayer<K, L>where
K: RefUnwindSafe,
L: RefUnwindSafe,
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,
impl<K, L> Unpin for OrderedLayer<K, L>where
K: Unpin,
L: Unpin,
impl<K, L> UnwindSafe for OrderedLayer<K, L>where
K: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more