pub struct LocaleFallbackIterator<'a> { /* 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> Freeze for LocaleFallbackIterator<'a>
impl<'a> RefUnwindSafe for LocaleFallbackIterator<'a>
impl<'a> Send for LocaleFallbackIterator<'a>
impl<'a> Sync for LocaleFallbackIterator<'a>
impl<'a> Unpin for LocaleFallbackIterator<'a>
impl<'a> UnwindSafe for LocaleFallbackIterator<'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