Struct icu::locale::fallback::LocaleFallbackIterator
source · pub struct LocaleFallbackIterator<'a, 'b> { /* private fields */ }
Expand description
Iteration type for locale fallback operations.
Because the Iterator
trait does not allow items to borrow from the iterator, this class does
not implement that trait. Instead, use .step()
and .get()
.
Implementations§
source§impl LocaleFallbackIterator<'_, '_>
impl LocaleFallbackIterator<'_, '_>
sourcepub fn get(&self) -> &DataLocale
pub fn get(&self) -> &DataLocale
Borrows the current DataLocale
under fallback.
sourcepub fn take(self) -> DataLocale
pub fn take(self) -> DataLocale
Takes the current DataLocale
under fallback.
sourcepub fn step(&mut self) -> &mut LocaleFallbackIterator<'_, '_>
pub fn step(&mut self) -> &mut LocaleFallbackIterator<'_, '_>
Performs one step of the locale fallback algorithm.
The fallback is completed once the inner DataLocale
becomes DataLocale::default()
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for LocaleFallbackIterator<'a, 'b>
impl<'a, 'b> RefUnwindSafe for LocaleFallbackIterator<'a, 'b>
impl<'a, 'b> Send for LocaleFallbackIterator<'a, 'b>
impl<'a, 'b> Sync for LocaleFallbackIterator<'a, 'b>
impl<'a, 'b> Unpin for LocaleFallbackIterator<'a, 'b>
impl<'a, 'b> UnwindSafe for LocaleFallbackIterator<'a, 'b>
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