Struct icu_normalizer::CharacterAndTrieValue
source · pub(crate) struct CharacterAndTrieValue {
pub(crate) character: char,
pub(crate) trie_val: u32,
pub(crate) from_supplement: bool,
}
Expand description
Struct for holding together a character and the value looked up for it from the NFD trie in a more explicit way than an anonymous pair. Also holds a flag about the supplementary-trie provenance.
Fields§
§character: char
§trie_val: u32
§from_supplement: bool
Implementations§
source§impl CharacterAndTrieValue
impl CharacterAndTrieValue
pub fn new(c: char, trie_value: u32) -> Self
pub fn new_from_supplement(c: char, trie_value: u32) -> Self
pub fn starter_and_decomposes_to_self(&self) -> bool
pub fn can_combine_backwards(&self) -> bool
pub fn potential_passthrough(&self) -> bool
pub fn potential_passthrough_and_cannot_combine_backwards(&self) -> bool
pub(crate) fn potential_passthrough_impl(&self, bound: u32) -> bool
Trait Implementations§
source§impl Debug for CharacterAndTrieValue
impl Debug for CharacterAndTrieValue
source§impl PartialEq for CharacterAndTrieValue
impl PartialEq for CharacterAndTrieValue
source§fn eq(&self, other: &CharacterAndTrieValue) -> bool
fn eq(&self, other: &CharacterAndTrieValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CharacterAndTrieValue
impl StructuralPartialEq for CharacterAndTrieValue
Auto Trait Implementations§
impl Freeze for CharacterAndTrieValue
impl RefUnwindSafe for CharacterAndTrieValue
impl Send for CharacterAndTrieValue
impl Sync for CharacterAndTrieValue
impl Unpin for CharacterAndTrieValue
impl UnwindSafe for CharacterAndTrieValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more