pub(crate) struct CharacterAndTrieValue {
pub(crate) character: char,
pub(crate) trie_val: u32,
}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: u32See trie-value-format.md
Implementations§
Source§impl CharacterAndTrieValue
impl CharacterAndTrieValue
pub fn new(c: char, trie_value: u32) -> Self
pub fn starter_and_decomposes_to_self(&self) -> bool
Sourcepub fn can_combine_backwards(&self) -> bool
pub fn can_combine_backwards(&self) -> bool
See trie-value-format.md
Sourcepub fn potential_passthrough(&self) -> bool
pub fn potential_passthrough(&self) -> bool
See trie-value-format.md
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
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 UnsafeUnpin 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