Struct icu_segmenter::complex::dictionary::DictionaryBreakIterator
source · struct DictionaryBreakIterator<'l, 's, Y: DictionaryType<'l, 's> + ?Sized, X: Iterator<Item = usize> + ?Sized> {
trie: Char16Trie<'l>,
iter: Y::IterAttr,
len: usize,
grapheme_iter: X,
}
Fields§
§trie: Char16Trie<'l>
§iter: Y::IterAttr
§len: usize
§grapheme_iter: X
Trait Implementations§
source§impl<'l, 's, Y: DictionaryType<'l, 's> + ?Sized, X: Iterator<Item = usize> + ?Sized> Iterator for DictionaryBreakIterator<'l, 's, Y, X>
impl<'l, 's, Y: DictionaryType<'l, 's> + ?Sized, X: Iterator<Item = usize> + ?Sized> Iterator for DictionaryBreakIterator<'l, 's, Y, X>
Implement the Iterator
trait over the segmenter break opportunities of the given string.
Please see the module-level documentation for its usages.
Lifetimes:
'l
= lifetime of the segmenter object from which this iterator was created's
= lifetime of the string being segmented
source§fn next(&mut self) -> Option<Self::Item>
fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read more
1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more
Auto Trait Implementations§
impl<'l, 's, Y, X> Freeze for DictionaryBreakIterator<'l, 's, Y, X>
impl<'l, 's, Y, X> RefUnwindSafe for DictionaryBreakIterator<'l, 's, Y, X>
impl<'l, 's, Y, X> Send for DictionaryBreakIterator<'l, 's, Y, X>
impl<'l, 's, Y, X> Sync for DictionaryBreakIterator<'l, 's, Y, X>
impl<'l, 's, Y, X> Unpin for DictionaryBreakIterator<'l, 's, Y, X>
impl<'l, 's, Y, X> UnwindSafe for DictionaryBreakIterator<'l, 's, Y, X>
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