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
sourceimpl<V> CharDataTable<V>
impl<V> CharDataTable<V>
sourceimpl<V: Copy> CharDataTable<V>
impl<V: Copy> CharDataTable<V>
sourceimpl<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.
sourceimpl<V> CharDataTable<V>
impl<V> CharDataTable<V>
sourcepub fn iter(&self) -> CharDataTableIter<'_, V>ⓘNotable traits for CharDataTableIter<'a, V>impl<'a, V: Copy> Iterator for CharDataTableIter<'a, V> type Item = (CharRange, V);
pub fn iter(&self) -> CharDataTableIter<'_, V>ⓘNotable traits for CharDataTableIter<'a, V>impl<'a, V: Copy> Iterator for CharDataTableIter<'a, V> type Item = (CharRange, V);
Iterate over the entries in this table. Yields pairs (CharRange, V).
Trait Implementations
sourceimpl<V: Clone + 'static> Clone for CharDataTable<V>
impl<V: Clone + 'static> Clone for CharDataTable<V>
sourcefn clone(&self) -> CharDataTable<V>
fn clone(&self) -> CharDataTable<V>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<V: Debug + 'static> Debug for CharDataTable<V>
impl<V: Debug + 'static> Debug for CharDataTable<V>
sourceimpl<V> Default for CharDataTable<V>
impl<V> Default for CharDataTable<V>
impl<V: Copy + 'static> Copy for CharDataTable<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for CharDataTable<V> where
V: RefUnwindSafe,
impl<V> Send for CharDataTable<V> where
V: Sync,
impl<V> Sync for CharDataTable<V> where
V: Sync,
impl<V> Unpin for CharDataTable<V>
impl<V> UnwindSafe for CharDataTable<V> where
V: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more