Struct icu_segmenter::complex::dictionary::DictionarySegmenter
source · pub(super) struct DictionarySegmenter<'l> {
dict: &'l UCharDictionaryBreakDataV1<'l>,
grapheme: &'l RuleBreakDataV1<'l>,
}
Fields§
§dict: &'l UCharDictionaryBreakDataV1<'l>
§grapheme: &'l RuleBreakDataV1<'l>
Implementations§
source§impl<'l> DictionarySegmenter<'l>
impl<'l> DictionarySegmenter<'l>
pub(super) fn new( dict: &'l UCharDictionaryBreakDataV1<'l>, grapheme: &'l RuleBreakDataV1<'l>, ) -> Self
sourcepub(super) fn segment_str(
&'l self,
input: &'l str,
) -> impl Iterator<Item = usize> + 'l
pub(super) fn segment_str( &'l self, input: &'l str, ) -> impl Iterator<Item = usize> + 'l
Create a dictionary based break iterator for an str
(a UTF-8 string).
sourcepub(super) fn segment_utf16(
&'l self,
input: &'l [u16],
) -> impl Iterator<Item = usize> + 'l
pub(super) fn segment_utf16( &'l self, input: &'l [u16], ) -> impl Iterator<Item = usize> + 'l
Create a dictionary based break iterator for a UTF-16 string.
Auto Trait Implementations§
impl<'l> Freeze for DictionarySegmenter<'l>
impl<'l> RefUnwindSafe for DictionarySegmenter<'l>
impl<'l> Send for DictionarySegmenter<'l>
impl<'l> Sync for DictionarySegmenter<'l>
impl<'l> Unpin for DictionarySegmenter<'l>
impl<'l> UnwindSafe for DictionarySegmenter<'l>
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