Struct ironstorm_lookup::LookupTable [] [src]

pub struct LookupTable<'a, V: 'a> where
    V: Lookup
{ /* fields omitted */ }

This is the actual LookupTable that creates the in memory data structure and uses it to perform the lookups. It implements the FromIterator trait and its from_iter(..) method. To create a new LookupTable instance, you first have to create an Iterator over some Lookup items. Having that iterator, you can call `LookupTable::from_iter(myLookupItemIterator)``.

Methods

impl<'a, V> LookupTable<'a, V> where
    V: Lookup
[src]

[src]

Searches for Lookup entries with a serachable_text that contains the given search_text. If the search_text is found multiple times for the same entry, the entry will also be returned multiple times. If no matches are found, the Iterator will immediately start returning None. Entries in lower buckets will be returned before entries in higher buckets. The method is case sensitive.

[src]

Returns the number of values for this LookupTable

[src]

Returns the number of buckets for this LookupTable

Trait Implementations

impl<'a, A: Lookup> FromIterator<A> for LookupTable<'a, A>
[src]

[src]

Creates a LookupTable from the given Iterator

Auto Trait Implementations

impl<'a, V> Send for LookupTable<'a, V> where
    V: Send

impl<'a, V> Sync for LookupTable<'a, V>