Struct UnicodeSentences
pub struct UnicodeSentences<'a> { /* private fields */ }
An iterator over the substrings of a string which, after splitting the string on sentence boundaries, contain any characters with the Alphabetic property, or with General_Category=Number.
This struct is created by the unicode_sentences method on the UnicodeSegmentation
trait. See its documentation for more.
Trait Implementations
impl<'a> Clone for UnicodeSentences<'a>
fn clone(&self) -> UnicodeSentences<'a>
impl<'a> Debug for UnicodeSentences<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a> Iterator for UnicodeSentences<'a>
type Item = &'a str;fn next(&mut self) -> Option<&'a str>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<'a> Freeze for UnicodeSentences<'a>
impl<'a> RefUnwindSafe for UnicodeSentences<'a>
impl<'a> Send for UnicodeSentences<'a>
impl<'a> Sync for UnicodeSentences<'a>
impl<'a> Unpin for UnicodeSentences<'a>
impl<'a> UnsafeUnpin for UnicodeSentences<'a>
impl<'a> UnwindSafe for UnicodeSentences<'a>
Blanket Implementations
impl<I> IntoIterator for UnicodeSentences<'a>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for UnicodeSentences<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UnicodeSentences<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UnicodeSentences<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for UnicodeSentences<'a>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for UnicodeSentences<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for UnicodeSentences<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for UnicodeSentences<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UnicodeSentences<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>