Struct icu_capi::fallbacker::ffi::ICU4XLocaleFallbackConfig
source · #[repr(C)]pub struct ICU4XLocaleFallbackConfig<'a> {
pub priority: ICU4XLocaleFallbackPriority,
pub extension_key: &'a DiplomatStr,
pub fallback_supplement: ICU4XLocaleFallbackSupplement,
}
Expand description
Collection of configurations for the ICU4X fallback algorithm.
Fields§
§priority: ICU4XLocaleFallbackPriority
Choice of priority mode.
extension_key: &'a DiplomatStr
An empty string is considered None
.
fallback_supplement: ICU4XLocaleFallbackSupplement
Fallback supplement data key to customize fallback rules.
Trait Implementations§
source§impl<'a> Clone for ICU4XLocaleFallbackConfig<'a>
impl<'a> Clone for ICU4XLocaleFallbackConfig<'a>
source§fn clone(&self) -> ICU4XLocaleFallbackConfig<'a>
fn clone(&self) -> ICU4XLocaleFallbackConfig<'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 TryFrom<ICU4XLocaleFallbackConfig<'_>> for LocaleFallbackConfig
impl TryFrom<ICU4XLocaleFallbackConfig<'_>> for LocaleFallbackConfig
§type Error = ICU4XError
type Error = ICU4XError
The type returned in the event of a conversion error.
impl<'a> Copy for ICU4XLocaleFallbackConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for ICU4XLocaleFallbackConfig<'a>
impl<'a> RefUnwindSafe for ICU4XLocaleFallbackConfig<'a>
impl<'a> Send for ICU4XLocaleFallbackConfig<'a>
impl<'a> Sync for ICU4XLocaleFallbackConfig<'a>
impl<'a> Unpin for ICU4XLocaleFallbackConfig<'a>
impl<'a> UnwindSafe for ICU4XLocaleFallbackConfig<'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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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