Struct icu_locale::preferences::extensions::unicode::keywords::RegionOverride
pub struct RegionOverride(/* private fields */);
Expand description
A Region Override specifies an alternate region to use for obtaining certain region-specific default values.
The valid values are listed in LDML.
Methods from Deref<Target = SubdivisionId>§
Trait Implementations§
§impl Clone for RegionOverride
impl Clone for RegionOverride
§fn clone(&self) -> RegionOverride
fn clone(&self) -> RegionOverride
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 more§impl Debug for RegionOverride
impl Debug for RegionOverride
§impl Deref for RegionOverride
impl Deref for RegionOverride
§type Target = SubdivisionId
type Target = SubdivisionId
The resulting type after dereferencing.
§fn deref(&self) -> &<RegionOverride as Deref>::Target
fn deref(&self) -> &<RegionOverride as Deref>::Target
Dereferences the value.
§impl From<RegionOverride> for Value
impl From<RegionOverride> for Value
§fn from(input: RegionOverride) -> Value
fn from(input: RegionOverride) -> Value
Converts to this type from the input type.
§impl Hash for RegionOverride
impl Hash for RegionOverride
§impl PartialEq for RegionOverride
impl PartialEq for RegionOverride
§impl PreferenceKey for RegionOverride
impl PreferenceKey for RegionOverride
§fn unicode_extension_key() -> Option<Key>
fn unicode_extension_key() -> Option<Key>
Retrieve unicode extension key corresponding to a given preference.
§fn try_from_key_value(
key: &Key,
value: &Value,
) -> Result<Option<RegionOverride>, PreferencesParseError>
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<RegionOverride>, PreferencesParseError>
Optional constructor of the given preference. It takes the
unicode extension key and if the key matches it attemptes to construct
the preference based on the given value.
If the value is not a valid value for the given key, the constructor throws.
§fn unicode_extension_value(&self) -> Option<Value>
fn unicode_extension_value(&self) -> Option<Value>
Retrieve unicode extension value corresponding to the given instance of the preference.
§impl TryFrom<Value> for RegionOverride
impl TryFrom<Value> for RegionOverride
§type Error = PreferencesParseError
type Error = PreferencesParseError
The type returned in the event of a conversion error.
§fn try_from(
input: Value,
) -> Result<RegionOverride, <RegionOverride as TryFrom<Value>>::Error>
fn try_from( input: Value, ) -> Result<RegionOverride, <RegionOverride as TryFrom<Value>>::Error>
Performs the conversion.
impl Copy for RegionOverride
impl Eq for RegionOverride
impl StructuralPartialEq for RegionOverride
Auto Trait Implementations§
impl Freeze for RegionOverride
impl RefUnwindSafe for RegionOverride
impl Send for RegionOverride
impl Sync for RegionOverride
impl Unpin for RegionOverride
impl UnwindSafe for RegionOverride
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