Struct differential_dataflow::trace::layers::ordered_leaf::OrderedLeaf
[−]
[src]
pub struct OrderedLeaf<K, R> {
pub vals: Vec<(K, R)>,
}A layer of unordered values.
Fields
vals: Vec<(K, R)>
Unordered values.
Trait Implementations
impl<K: Debug, R: Debug> Debug for OrderedLeaf<K, R>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<K: Eq, R: Eq> Eq for OrderedLeaf<K, R>[src]
impl<K: PartialEq, R: PartialEq> PartialEq for OrderedLeaf<K, R>[src]
fn eq(&self, __arg_0: &OrderedLeaf<K, R>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &OrderedLeaf<K, R>) -> bool[src]
This method tests for !=.
impl<K: Clone, R: Clone> Clone for OrderedLeaf<K, R>[src]
fn clone(&self) -> OrderedLeaf<K, R>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<K, R> Abomonation for OrderedLeaf<K, R> where
Vec<(K, R)>: Abomonation,
K: Abomonation,
R: Abomonation, [src]
Vec<(K, R)>: Abomonation,
K: Abomonation,
R: Abomonation,
unsafe fn entomb<W: Write>(&self, _write: &mut W) -> Result<()>[src]
Write any additional information about &self beyond its binary representation. Read more
fn extent(&self) -> usize[src]
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]
&'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, R: Diff + Clone> Trie for OrderedLeaf<K, R>[src]
type Item = (K, R)
The type of item from which the type is constructed.
type Cursor = OrderedLeafCursor
The type of cursor used to navigate the type.
type MergeBuilder = OrderedLeafBuilder<K, R>
The type used to merge instances of the type together.
type TupleBuilder = OrderedLeafBuilder<K, R>
The type used to assemble instances of the type from its Items.
fn keys(&self) -> usize[src]
The number of distinct keys, as distinct from the total number of tuples.
fn tuples(&self) -> usize[src]
The total number of tuples in the collection.
fn cursor_from(&self, lower: usize, upper: usize) -> Self::Cursor[src]
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]
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: Clone, R: Clone> Cursor<OrderedLeaf<K, R>> for OrderedLeafCursor[src]
type Key = (K, R)
The type revealed by the cursor.
fn key<'a>(&self, storage: &'a OrderedLeaf<K, R>) -> &'a Self::Key[src]
Reveals the current key.
fn step(&mut self, storage: &OrderedLeaf<K, R>)[src]
Advances the cursor by one element.
fn seek(&mut self, _storage: &OrderedLeaf<K, R>, _key: &Self::Key)[src]
Advances the cursor until the location where key would be expected.
fn valid(&self, _storage: &OrderedLeaf<K, R>) -> bool[src]
Returns true if the cursor points at valid data. Returns false if the cursor is exhausted.
fn rewind(&mut self, _storage: &OrderedLeaf<K, R>)[src]
Rewinds the cursor to its initial state.
fn reposition(
&mut self,
_storage: &OrderedLeaf<K, R>,
lower: usize,
upper: usize
)[src]
&mut self,
_storage: &OrderedLeaf<K, R>,
lower: usize,
upper: usize
)
Repositions the cursor to a different range of values.
Auto Trait Implementations
impl<K, R> Send for OrderedLeaf<K, R> where
K: Send,
R: Send,
K: Send,
R: Send,
impl<K, R> Sync for OrderedLeaf<K, R> where
K: Sync,
R: Sync,
K: Sync,
R: Sync,