pub trait Latin1CharsWithTrieEx<'slice, 'trie, T, V>where
V: TrieValue,
T: AbstractCodePointTrie<'trie, V>,{
// Required methods
fn latin1_chars_with_trie(
&'slice self,
trie: &'trie T,
) -> Latin1CharsWithTrie<'slice, 'trie, T, V> ⓘ;
fn latin1_char_indices_with_trie(
&'slice self,
trie: &'trie T,
) -> Latin1CharIndicesWithTrie<'slice, 'trie, T, V> ⓘ;
}Expand description
Adds convenience methods to [u8].
Required Methods§
Sourcefn latin1_chars_with_trie(
&'slice self,
trie: &'trie T,
) -> Latin1CharsWithTrie<'slice, 'trie, T, V> ⓘ
fn latin1_chars_with_trie( &'slice self, trie: &'trie T, ) -> Latin1CharsWithTrie<'slice, 'trie, T, V> ⓘ
Method for easily creating Latin1CharsWithTrie on [u8] analogously to chars() on str.
(The name is prefixed with latin1_ to avoid ambiguity with interpreting u8 as UTF-8.)
Sourcefn latin1_char_indices_with_trie(
&'slice self,
trie: &'trie T,
) -> Latin1CharIndicesWithTrie<'slice, 'trie, T, V> ⓘ
fn latin1_char_indices_with_trie( &'slice self, trie: &'trie T, ) -> Latin1CharIndicesWithTrie<'slice, 'trie, T, V> ⓘ
Method for easily creating Latin1CharIndicesWithTrie on str analogously to char_indices() on str.
(The name is prefixed with latin1_ to avoid ambiguity with interpreting u8 as UTF-8.)
Implementations on Foreign Types§
Source§impl<'slice, 'trie, T, V> Latin1CharsWithTrieEx<'slice, 'trie, T, V> for [u8]where
V: TrieValue,
T: AbstractCodePointTrie<'trie, V>,
impl<'slice, 'trie, T, V> Latin1CharsWithTrieEx<'slice, 'trie, T, V> for [u8]where
V: TrieValue,
T: AbstractCodePointTrie<'trie, V>,
Source§fn latin1_chars_with_trie(
&'slice self,
trie: &'trie T,
) -> Latin1CharsWithTrie<'slice, 'trie, T, V> ⓘ
fn latin1_chars_with_trie( &'slice self, trie: &'trie T, ) -> Latin1CharsWithTrie<'slice, 'trie, T, V> ⓘ
Method for easily creating Latin1CharsWithTrie on [u8] analogously to chars() on str.
(The name is prefixed with latin1_ to avoid ambiguity with interpreting u8 as UTF-8.)
Source§fn latin1_char_indices_with_trie(
&'slice self,
trie: &'trie T,
) -> Latin1CharIndicesWithTrie<'slice, 'trie, T, V> ⓘ
fn latin1_char_indices_with_trie( &'slice self, trie: &'trie T, ) -> Latin1CharIndicesWithTrie<'slice, 'trie, T, V> ⓘ
Method for easily creating Latin1CharIndicesWithTrie on str analogously to char_indices() on str.
(The name is prefixed with latin1_ to avoid ambiguity with interpreting u8 as UTF-8.)