Struct UnicodeWordIndices

pub struct UnicodeWordIndices<'a> { /* private fields */ }

An iterator over the substrings of a string which, after splitting the string on word boundaries, contain any characters with the Alphabetic property, or with General_Category=Number. This iterator also provides the byte offsets for each substring.

This struct is created by the unicode_word_indices method on the UnicodeSegmentation trait. See its documentation for more.

Trait Implementations

impl<'a> Debug for UnicodeWordIndices<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'a> DoubleEndedIterator for UnicodeWordIndices<'a>

fn next_back(&mut self) -> Option<Self::Item>

impl<'a> Iterator for UnicodeWordIndices<'a>

type Item = (usize, &'a str);
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

Auto Trait Implementations

impl<'a> Freeze for UnicodeWordIndices<'a>

impl<'a> RefUnwindSafe for UnicodeWordIndices<'a>

impl<'a> Send for UnicodeWordIndices<'a>

impl<'a> Sync for UnicodeWordIndices<'a>

impl<'a> Unpin for UnicodeWordIndices<'a>

impl<'a> UnsafeUnpin for UnicodeWordIndices<'a>

impl<'a> UnwindSafe for UnicodeWordIndices<'a>

Blanket Implementations

impl<I> IntoIterator for UnicodeWordIndices<'a> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for UnicodeWordIndices<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for UnicodeWordIndices<'a> where T: ?Sized,

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

impl<T> From<T> for UnicodeWordIndices<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for UnicodeWordIndices<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom<U> for UnicodeWordIndices<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for UnicodeWordIndices<'a> where U: TryFrom<T>,

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