pub struct LocaleFallbackerBorrowed<'a> { /* private fields */ }
Expand description
Borrowed version of LocaleFallbacker
.
Implementations§
Source§impl<'a> LocaleFallbackerBorrowed<'a>
impl<'a> LocaleFallbackerBorrowed<'a>
Sourcepub const fn for_config(
self,
config: LocaleFallbackConfig,
) -> LocaleFallbackerWithConfig<'a>
pub const fn for_config( self, config: LocaleFallbackConfig, ) -> LocaleFallbackerWithConfig<'a>
Associates a configuration with this fallbacker.
Source§impl LocaleFallbackerBorrowed<'static>
impl LocaleFallbackerBorrowed<'static>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a LocaleFallbackerBorrowed
with compiled fallback data (likely subtags and parent locales).
✨ Enabled with the compiled_data
Cargo feature.
Sourcepub const fn static_to_owned(self) -> LocaleFallbacker
pub const fn static_to_owned(self) -> LocaleFallbacker
Cheaply converts a [LocaleFallbackerBorrowed<'static>
] into a LocaleFallbacker
.
Note: Due to branching and indirection, using LocaleFallbacker
might inhibit some
compile-time optimizations that are possible with LocaleFallbackerBorrowed
.
Trait Implementations§
Source§impl<'a> Clone for LocaleFallbackerBorrowed<'a>
impl<'a> Clone for LocaleFallbackerBorrowed<'a>
Source§fn clone(&self) -> LocaleFallbackerBorrowed<'a>
fn clone(&self) -> LocaleFallbackerBorrowed<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for LocaleFallbackerBorrowed<'a>
impl<'a> Debug for LocaleFallbackerBorrowed<'a>
Source§impl<'a> PartialEq for LocaleFallbackerBorrowed<'a>
impl<'a> PartialEq for LocaleFallbackerBorrowed<'a>
Source§fn eq(&self, other: &LocaleFallbackerBorrowed<'a>) -> bool
fn eq(&self, other: &LocaleFallbackerBorrowed<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a> Copy for LocaleFallbackerBorrowed<'a>
impl<'a> StructuralPartialEq for LocaleFallbackerBorrowed<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocaleFallbackerBorrowed<'a>
impl<'a> RefUnwindSafe for LocaleFallbackerBorrowed<'a>
impl<'a> Send for LocaleFallbackerBorrowed<'a>
impl<'a> Sync for LocaleFallbackerBorrowed<'a>
impl<'a> Unpin for LocaleFallbackerBorrowed<'a>
impl<'a> UnwindSafe for LocaleFallbackerBorrowed<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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