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>

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
§

type Item = usize

The type of the elements being iterated over.
source§

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>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator by n elements. Read more
1.0.0 · source§

fn nth(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element of the iterator. Read more

Auto Trait Implementations§

§

impl<'l, 's, Y, X> Freeze for DictionaryBreakIterator<'l, 's, Y, X>
where <Y as DictionaryType<'l, 's>>::IterAttr: Freeze, X: Freeze + ?Sized, Y: ?Sized,

§

impl<'l, 's, Y, X> RefUnwindSafe for DictionaryBreakIterator<'l, 's, Y, X>
where <Y as DictionaryType<'l, 's>>::IterAttr: RefUnwindSafe, X: RefUnwindSafe + ?Sized, Y: ?Sized,

§

impl<'l, 's, Y, X> Send for DictionaryBreakIterator<'l, 's, Y, X>
where <Y as DictionaryType<'l, 's>>::IterAttr: Send, X: Send + ?Sized, Y: ?Sized,

§

impl<'l, 's, Y, X> Sync for DictionaryBreakIterator<'l, 's, Y, X>
where <Y as DictionaryType<'l, 's>>::IterAttr: Sync, X: Sync + ?Sized, Y: ?Sized,

§

impl<'l, 's, Y, X> Unpin for DictionaryBreakIterator<'l, 's, Y, X>
where <Y as DictionaryType<'l, 's>>::IterAttr: Unpin, X: Unpin + ?Sized, Y: ?Sized,

§

impl<'l, 's, Y, X> UnwindSafe for DictionaryBreakIterator<'l, 's, Y, X>
where <Y as DictionaryType<'l, 's>>::IterAttr: UnwindSafe, X: UnwindSafe + ?Sized, Y: ?Sized,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T