Struct icu_capi::segmenter_word::ffi::WordBreakIteratorUtf16
source · pub struct WordBreakIteratorUtf16<'a>(/* private fields */);
Implementations§
source§impl<'a> WordBreakIteratorUtf16<'a>
impl<'a> WordBreakIteratorUtf16<'a>
sourcepub fn next(&mut self) -> i32
pub fn next(&mut self) -> i32
Finds the next breakpoint. Returns -1 if at the end of the string or if the index is out of range of a 32-bit signed integer.
sourcepub fn word_type(&self) -> SegmenterWordType
pub fn word_type(&self) -> SegmenterWordType
Return the status value of break boundary.
sourcepub fn is_word_like(&self) -> bool
pub fn is_word_like(&self) -> bool
Return true when break boundary is word-like such as letter/number/CJK
Auto Trait Implementations§
impl<'a> Freeze for WordBreakIteratorUtf16<'a>
impl<'a> RefUnwindSafe for WordBreakIteratorUtf16<'a>
impl<'a> Send for WordBreakIteratorUtf16<'a>
impl<'a> Sync for WordBreakIteratorUtf16<'a>
impl<'a> Unpin for WordBreakIteratorUtf16<'a>
impl<'a> UnwindSafe for WordBreakIteratorUtf16<'a>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more