[−][src]Enum unic_char_property::tables::CharDataTable
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]
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]
fn clone(&self) -> CharDataTable<V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
V: Sync,
impl<V> Sync for CharDataTable<V> where
V: Sync,
V: Sync,
impl<V> Unpin for CharDataTable<V>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,