Enum unic_char_property::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> CharDataTable<V>impl<V: Copy> CharDataTable<V>[src]
impl<V: Copy> CharDataTable<V>pub fn find(&self, needle: char) -> Option<V>[src]
pub fn find(&self, needle: char) -> Option<V>Find the associated data for a character in this table.
impl<V: Copy + Default> CharDataTable<V>[src]
impl<V: Copy + Default> CharDataTable<V>pub fn find_or_default(&self, needle: char) -> V[src]
pub fn find_or_default(&self, needle: char) -> VFind the associated data for a character in this table, or the default value if not entered.
impl<V> CharDataTable<V>[src]
impl<V> CharDataTable<V>ⓘImportant traits for CharDataTableIter<'a, V>pub fn iter(&self) -> CharDataTableIter<V>[src]
ⓘImportant traits for CharDataTableIter<'a, V>
pub fn iter(&self) -> CharDataTableIter<V>Iterate over the entries in this table. Yields pairs (CharRange, V).
Trait Implementations
impl<V: Copy + 'static> Copy for CharDataTable<V>[src]
impl<V: Copy + 'static> Copy for CharDataTable<V>impl<V: Clone + 'static> Clone for CharDataTable<V>[src]
impl<V: Clone + 'static> Clone for CharDataTable<V>fn clone(&self) -> CharDataTable<V>[src]
fn clone(&self) -> CharDataTable<V>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<V: Debug + 'static> Debug for CharDataTable<V>[src]
impl<V: Debug + 'static> Debug for CharDataTable<V>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<V> Default for CharDataTable<V>[src]
impl<V> Default for CharDataTable<V>Auto Trait Implementations
impl<V> Send for CharDataTable<V> where
V: Sync,
impl<V> Send for CharDataTable<V> where
V: Sync, impl<V> Sync for CharDataTable<V> where
V: Sync,
impl<V> Sync for CharDataTable<V> where
V: Sync,