pub struct RegionalSubdivision(/* private fields */);Expand description
A Unicode Subdivision Identifier defines a regional subdivision used for locales.
The valid values are listed in LDML.
Methods from Deref<Target = SubdivisionId>§
Trait Implementations§
Source§impl Clone for RegionalSubdivision
 
impl Clone for RegionalSubdivision
Source§fn clone(&self) -> RegionalSubdivision
 
fn clone(&self) -> RegionalSubdivision
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 Debug for RegionalSubdivision
 
impl Debug for RegionalSubdivision
Source§impl Deref for RegionalSubdivision
 
impl Deref for RegionalSubdivision
Source§type Target = SubdivisionId
 
type Target = SubdivisionId
The resulting type after dereferencing.
Source§impl From<RegionalSubdivision> for Value
 
impl From<RegionalSubdivision> for Value
Source§fn from(input: RegionalSubdivision) -> Value
 
fn from(input: RegionalSubdivision) -> Value
Converts to this type from the input type.
Source§impl Hash for RegionalSubdivision
 
impl Hash for RegionalSubdivision
Source§impl PartialEq for RegionalSubdivision
 
impl PartialEq for RegionalSubdivision
Source§impl PreferenceKey for RegionalSubdivision
 
impl PreferenceKey for RegionalSubdivision
Source§fn unicode_extension_key() -> Option<Key>
 
fn unicode_extension_key() -> Option<Key>
Retrieve unicode extension key corresponding to a given preference.
Source§fn try_from_key_value(
    key: &Key,
    value: &Value,
) -> Result<Option<RegionalSubdivision>, PreferencesParseError>
 
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<RegionalSubdivision>, 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.
Source§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.
Source§impl TryFrom<Value> for RegionalSubdivision
 
impl TryFrom<Value> for RegionalSubdivision
Source§type Error = PreferencesParseError
 
type Error = PreferencesParseError
The type returned in the event of a conversion error.
Source§fn try_from(
    input: Value,
) -> Result<RegionalSubdivision, <RegionalSubdivision as TryFrom<Value>>::Error>
 
fn try_from( input: Value, ) -> Result<RegionalSubdivision, <RegionalSubdivision as TryFrom<Value>>::Error>
Performs the conversion.
impl Copy for RegionalSubdivision
impl Eq for RegionalSubdivision
impl StructuralPartialEq for RegionalSubdivision
Auto Trait Implementations§
impl Freeze for RegionalSubdivision
impl RefUnwindSafe for RegionalSubdivision
impl Send for RegionalSubdivision
impl Sync for RegionalSubdivision
impl Unpin for RegionalSubdivision
impl UnwindSafe for RegionalSubdivision
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