Struct icu_capi::properties_iter::ffi::CodePointRangeIteratorResult
source · #[repr(C)]pub struct CodePointRangeIteratorResult {
pub start: DiplomatChar,
pub end: DiplomatChar,
pub done: bool,
}
Expand description
Result of a single iteration of CodePointRangeIterator
.
Logically can be considered to be an Option<RangeInclusive<DiplomatChar>>
,
start
and end
represent an inclusive range of code points [start, end],
and done
will be true if the iterator has already finished. The last contentful
iteration will NOT produce a range done=true, in other words start
and end
are useful
values if and only if done=false
.
Fields§
§start: DiplomatChar
§end: DiplomatChar
§done: bool
Auto Trait Implementations§
impl Freeze for CodePointRangeIteratorResult
impl RefUnwindSafe for CodePointRangeIteratorResult
impl Send for CodePointRangeIteratorResult
impl Sync for CodePointRangeIteratorResult
impl Unpin for CodePointRangeIteratorResult
impl UnwindSafe for CodePointRangeIteratorResult
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