[][src]Enum unic_char_property::tables::CharDataTable

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]

pub fn contains(&self, needle: char) -> bool[src]

Does this table contain a mapping for a character?

impl<V: Copy> CharDataTable<V>[src]

pub 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]

pub 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]

pub fn iter(&self) -> CharDataTableIter<V>[src]

Iterate over the entries in this table. Yields pairs (CharRange, V).

Trait Implementations

impl<V: Clone + 'static> Clone for CharDataTable<V>[src]

impl<V: Copy + 'static> Copy for CharDataTable<V>[src]

impl<V: Debug + 'static> Debug for CharDataTable<V>[src]

impl<V> Default for CharDataTable<V>[src]

Auto Trait Implementations

impl<V> Send for CharDataTable<V> where
    V: Sync

impl<V> Sync for CharDataTable<V> where
    V: Sync

impl<V> Unpin for CharDataTable<V>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.