Enum unic_char_property::tables::CharDataTable
source · pub enum CharDataTable<V: 'static> {
// some variants omitted
}
Expand description
A mapping from characters to some associated data.
For the set case, use ()
as the associated value.
Implementations§
source§impl<V> CharDataTable<V>
impl<V> CharDataTable<V>
source§impl<V: Copy> CharDataTable<V>
impl<V: Copy> CharDataTable<V>
source§impl<V: Copy + Default> CharDataTable<V>
impl<V: Copy + Default> CharDataTable<V>
sourcepub fn find_or_default(&self, needle: char) -> V
pub fn find_or_default(&self, needle: char) -> V
Find the associated data for a character in this table, or the default value if not entered.
source§impl<V> CharDataTable<V>
impl<V> CharDataTable<V>
sourcepub fn iter(&self) -> CharDataTableIter<'_, V> ⓘ
pub fn iter(&self) -> CharDataTableIter<'_, V> ⓘ
Iterate over the entries in this table. Yields pairs (CharRange, V)
.
Trait Implementations§
source§impl<V: Clone + 'static> Clone for CharDataTable<V>
impl<V: Clone + 'static> Clone for CharDataTable<V>
source§fn clone(&self) -> CharDataTable<V>
fn clone(&self) -> CharDataTable<V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more