Enum unic_utils::tables::CharDataTable
[−]
[src]
pub enum CharDataTable<V: 'static> { // some variants omitted }
A mapping from characters to some associated data.
For the set case, use ()
as the associated value.
Methods
impl<V> CharDataTable<V>
[src]
impl<V: Copy> CharDataTable<V>
[src]
fn find(&self, needle: char) -> Option<V>
[src]
Find the associated data for a character in this table.
impl<V: Copy + Default> CharDataTable<V>
[src]
fn find_or_default(&self, needle: char) -> V
[src]
Find the associated data for a character in this table, or the default value if not entered.
impl<V> CharDataTable<V>
[src]
fn iter(&self) -> CharDataTableIter<V>
[src]
Iterate over the entries in this table. Yields pairs (CharRange, V)
.
Trait Implementations
impl<V: Copy + 'static> Copy for CharDataTable<V>
[src]
impl<V: Clone + 'static> Clone for CharDataTable<V>
[src]
fn clone(&self) -> CharDataTable<V>
[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