Struct icu_locale::fallback::LocaleFallbackerBorrowed
source · 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 Default for LocaleFallbackerBorrowed<'static>
impl Default for LocaleFallbackerBorrowed<'static>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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