Struct unic_locale::ExtensionsMap
source · pub struct ExtensionsMap {
pub unicode: UnicodeExtensionList,
pub transform: TransformExtensionList,
pub other: BTreeMap<char, Vec<TinyAsciiStr<8>>>,
pub private: PrivateExtensionList,
}
Expand description
A map of extensions associated with a given `Locale.
Fields§
§unicode: UnicodeExtensionList
§transform: TransformExtensionList
§other: BTreeMap<char, Vec<TinyAsciiStr<8>>>
§private: PrivateExtensionList
Implementations§
source§impl ExtensionsMap
impl ExtensionsMap
pub fn from_bytes(bytes: &[u8]) -> Result<ExtensionsMap, ParserError>
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for ExtensionsMap
impl Clone for ExtensionsMap
source§fn clone(&self) -> ExtensionsMap
fn clone(&self) -> ExtensionsMap
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 ExtensionsMap
impl Debug for ExtensionsMap
source§impl Default for ExtensionsMap
impl Default for ExtensionsMap
source§fn default() -> ExtensionsMap
fn default() -> ExtensionsMap
Returns the “default value” for a type. Read more
source§impl Display for ExtensionsMap
impl Display for ExtensionsMap
source§impl FromStr for ExtensionsMap
impl FromStr for ExtensionsMap
§type Err = ParserError
type Err = ParserError
The associated error which can be returned from parsing.
source§fn from_str(
source: &str
) -> Result<ExtensionsMap, <ExtensionsMap as FromStr>::Err>
fn from_str( source: &str ) -> Result<ExtensionsMap, <ExtensionsMap as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for ExtensionsMap
impl Hash for ExtensionsMap
source§impl Ord for ExtensionsMap
impl Ord for ExtensionsMap
source§fn cmp(&self, other: &ExtensionsMap) -> Ordering
fn cmp(&self, other: &ExtensionsMap) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ExtensionsMap
impl PartialEq for ExtensionsMap
source§fn eq(&self, other: &ExtensionsMap) -> bool
fn eq(&self, other: &ExtensionsMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExtensionsMap
impl PartialOrd for ExtensionsMap
source§fn partial_cmp(&self, other: &ExtensionsMap) -> Option<Ordering>
fn partial_cmp(&self, other: &ExtensionsMap) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ExtensionsMap
impl StructuralPartialEq for ExtensionsMap
Auto Trait Implementations§
impl Freeze for ExtensionsMap
impl RefUnwindSafe for ExtensionsMap
impl Send for ExtensionsMap
impl Sync for ExtensionsMap
impl Unpin for ExtensionsMap
impl UnwindSafe for ExtensionsMap
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