Struct differential_dataflow::trace::layers::ordered::OrderedLayer [−][src]
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: Debug + Ord, L: Debug> Debug for OrderedLayer<K, L>
[src]
impl<K: Debug + Ord, L: Debug> Debug for OrderedLayer<K, L>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<K: Eq + Ord, L: Eq> Eq for OrderedLayer<K, L>
[src]
impl<K: Eq + Ord, L: Eq> Eq for OrderedLayer<K, L>
impl<K: PartialEq + Ord, L: PartialEq> PartialEq for OrderedLayer<K, L>
[src]
impl<K: PartialEq + Ord, L: PartialEq> PartialEq for OrderedLayer<K, L>
fn eq(&self, other: &OrderedLayer<K, L>) -> bool
[src]
fn eq(&self, other: &OrderedLayer<K, L>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OrderedLayer<K, L>) -> bool
[src]
fn ne(&self, other: &OrderedLayer<K, L>) -> bool
This method tests for !=
.
impl<K: Clone + Ord, L: Clone> Clone for OrderedLayer<K, L>
[src]
impl<K: Clone + Ord, L: Clone> Clone for OrderedLayer<K, L>
fn clone(&self) -> OrderedLayer<K, L>
[src]
fn clone(&self) -> OrderedLayer<K, L>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
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]
impl<K: Ord, L> Abomonation for OrderedLayer<K, L> where
Vec<K>: Abomonation,
K: Abomonation,
L: Abomonation,
unsafe fn entomb<W: Write>(&self, _write: &mut W) -> Result<()>
[src]
unsafe fn entomb<W: Write>(&self, _write: &mut W) -> Result<()>
Write any additional information about &self
beyond its binary representation. Read more
fn extent(&self) -> usize
[src]
fn extent(&self) -> usize
Reports the number of further bytes required to entomb self
.
unsafe fn exhume<'a, 'b>(
&'a mut self,
bytes: &'b mut [u8]
) -> Option<&'b mut [u8]>
[src]
unsafe fn exhume<'a, 'b>(
&'a mut self,
bytes: &'b mut [u8]
) -> Option<&'b mut [u8]>
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]
impl<K: Ord + Clone, L: Trie> Trie for OrderedLayer<K, L>
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 Item
s.
fn keys(&self) -> usize
[src]
fn keys(&self) -> usize
The number of distinct keys, as distinct from the total number of tuples.
fn tuples(&self) -> usize
[src]
fn tuples(&self) -> usize
The total number of tuples in the collection.
fn cursor_from(&self, lower: usize, upper: usize) -> Self::Cursor
[src]
fn cursor_from(&self, lower: usize, upper: usize) -> Self::Cursor
Returns a cursor over a range of data, commonly used by others to restrict navigation to sub-collections. Read more
fn cursor(&self) -> Self::Cursor
[src]
fn cursor(&self) -> Self::Cursor
Returns a cursor capable of navigating the collection.
fn merge(&self, other: &Self) -> Self
[src]
fn merge(&self, other: &Self) -> Self
Merges two collections into a third. Read more
impl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
[src]
impl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
type Key = K
The type revealed by the cursor.
fn key<'a>(&self, storage: &'a OrderedLayer<K, L>) -> &'a Self::Key
[src]
fn key<'a>(&self, storage: &'a OrderedLayer<K, L>) -> &'a Self::Key
Reveals the current key.
fn step(&mut self, storage: &OrderedLayer<K, L>)
[src]
fn step(&mut self, storage: &OrderedLayer<K, L>)
Advances the cursor by one element.
fn seek(&mut self, storage: &OrderedLayer<K, L>, key: &Self::Key)
[src]
fn seek(&mut self, storage: &OrderedLayer<K, L>, key: &Self::Key)
Advances the cursor until the location where key
would be expected.
fn valid(&self, _storage: &OrderedLayer<K, L>) -> bool
[src]
fn valid(&self, _storage: &OrderedLayer<K, L>) -> bool
Returns true
if the cursor points at valid data. Returns false
if the cursor is exhausted.
fn rewind(&mut self, storage: &OrderedLayer<K, L>)
[src]
fn rewind(&mut self, storage: &OrderedLayer<K, L>)
Rewinds the cursor to its initial state.
fn reposition(
&mut self,
storage: &OrderedLayer<K, L>,
lower: usize,
upper: usize
)
[src]
fn reposition(
&mut self,
storage: &OrderedLayer<K, L>,
lower: usize,
upper: usize
)
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> 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> Sync for OrderedLayer<K, L> where
K: Sync,
L: Sync,