Struct UnicodeWords

pub struct UnicodeWords<'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 struct is created by the unicode_words method on the UnicodeSegmentation trait. See its documentation for more.

Trait Implementations

impl<'a> Debug for UnicodeWords<'a>

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

impl<'a> DoubleEndedIterator for UnicodeWords<'a>

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

impl<'a> Iterator for UnicodeWords<'a>

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

Auto Trait Implementations

impl<'a> Freeze for UnicodeWords<'a>

impl<'a> RefUnwindSafe for UnicodeWords<'a>

impl<'a> Send for UnicodeWords<'a>

impl<'a> Sync for UnicodeWords<'a>

impl<'a> Unpin for UnicodeWords<'a>

impl<'a> UnsafeUnpin for UnicodeWords<'a>

impl<'a> UnwindSafe for UnicodeWords<'a>

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for UnicodeWords<'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 UnicodeWords<'a> where U: Into<T>,

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

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

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