Enum shortcut::idx::Index [] [src]

pub enum Index<T> {
    Range(Box<RangeIndex<T> + Send + Sync>),
    Equality(Box<EqualityIndex<T> + Send + Sync>),
}

A sum type expressing all different types of indices so they can easily be stored. Since all indices must at least implement EqualityIndex, this enum also forwards all calls of that trait to the underlying index for convenience.

Variants

A RangeIndex trait object.

An EqualityIndex trait object.

Trait Implementations

impl<T> EqualityIndex<T> for Index<T>
[src]

Return an iterator that yields the indices of all rows that match the given value.

Add the given row index to the index under the given value.

Remove the given row index under the given value from the index.

Give the expected number of rows returned for a key. This method may be called often, and in rapid succession, and so should return quickly. Read more

impl<T: Eq + Hash + 'static + Send + Sync> From<HashIndex<T>> for Index<T>
[src]

Performs the conversion.

impl<T: Ord + Eq + 'static + Send + Sync> From<BTreeIndex<T>> for Index<T>
[src]

Performs the conversion.