pub struct OrderedLeaf<K, R, C = Vec<(K, R)>>where
    C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,{
    pub vals: C,
}
Expand description

A layer of unordered values.

Fields§

§vals: C

Unordered values.

Trait Implementations§

source§

impl<K, R, C> Abomonation for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]> + Abomonation,

source§

unsafe fn entomb<W: Write>(&self, _write: &mut W) -> Result<()>

Write any additional information about &self beyond its binary representation. Read more
source§

fn extent(&self) -> usize

Reports the number of further bytes required to entomb self.
source§

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
source§

impl<K: Clone, R: Clone, C> Clone for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]> + Clone,

source§

fn clone(&self) -> OrderedLeaf<K, R, C>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<K: Clone, R: Clone, C> Cursor<OrderedLeaf<K, R, C>> for OrderedLeafCursorwhere C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,

§

type Key = (K, R)

The type revealed by the cursor.
source§

fn key<'a>(&self, storage: &'a OrderedLeaf<K, R, C>) -> &'a Self::Key

Reveals the current key.
source§

fn step(&mut self, storage: &OrderedLeaf<K, R, C>)

Advances the cursor by one element.
source§

fn seek(&mut self, _storage: &OrderedLeaf<K, R, C>, _key: &Self::Key)

Advances the cursor until the location where key would be expected.
source§

fn valid(&self, _storage: &OrderedLeaf<K, R, C>) -> bool

Returns true if the cursor points at valid data. Returns false if the cursor is exhausted.
source§

fn rewind(&mut self, _storage: &OrderedLeaf<K, R, C>)

Rewinds the cursor to its initial state.
source§

fn reposition( &mut self, _storage: &OrderedLeaf<K, R, C>, lower: usize, upper: usize )

Repositions the cursor to a different range of values.
source§

impl<K: Debug, R: Debug, C> Debug for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]> + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<K: PartialEq, R: PartialEq, C> PartialEq for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]> + PartialEq,

source§

fn eq(&self, other: &OrderedLeaf<K, R, C>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<K: Ord + Clone, R: Semigroup + Clone, C> Trie for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,

§

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, C>

The type used to merge instances of the type together.
§

type TupleBuilder = OrderedLeafBuilder<K, R, C>

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

fn keys(&self) -> usize

The number of distinct keys, as distinct from the total number of tuples.
source§

fn tuples(&self) -> usize

The total number of tuples in the collection.
source§

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.
source§

fn cursor(&self) -> Self::Cursor

Returns a cursor capable of navigating the collection.
source§

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

Merges two collections into a third. Read more
source§

impl<K: Eq, R: Eq, C> Eq for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]> + Eq,

source§

impl<K, R, C> StructuralEq for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,

source§

impl<K, R, C> StructuralPartialEq for OrderedLeaf<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,

Auto Trait Implementations§

§

impl<K, R, C> RefUnwindSafe for OrderedLeaf<K, R, C>where C: RefUnwindSafe,

§

impl<K, R, C> Send for OrderedLeaf<K, R, C>where C: Send,

§

impl<K, R, C> Sync for OrderedLeaf<K, R, C>where C: Sync,

§

impl<K, R, C> Unpin for OrderedLeaf<K, R, C>where C: Unpin,

§

impl<K, R, C> UnwindSafe for OrderedLeaf<K, R, C>where C: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> PreferredContainer for Twhere T: Clone,

§

type Container = Vec<T>

The preferred container for the type.
source§

impl<T> ProgressEventTimestamp for Twhere T: Data + Debug + Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

Upcasts this ProgressEventTimestamp to Any. Read more
source§

fn type_name(&self) -> &'static str

Returns the name of the concrete type of this object. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Data for Twhere T: Clone + 'static,