pub struct LocaleTagParts {
pub language: LanguageCode,
pub script: Option<ScriptCode>,
pub region: Option<RegionCode>,
pub variants: Vec<String>,
pub extensions: Vec<String>,
pub private_use: Option<String>,
}Expand description
Parsed locale tag components.
Fields§
§language: LanguageCode§script: Option<ScriptCode>§region: Option<RegionCode>§variants: Vec<String>§extensions: Vec<String>§private_use: Option<String>Implementations§
Source§impl LocaleTagParts
impl LocaleTagParts
Sourcepub fn to_tag_string(&self) -> String
pub fn to_tag_string(&self) -> String
Builds the normalized tag string represented by these parts.
Trait Implementations§
Source§impl Clone for LocaleTagParts
impl Clone for LocaleTagParts
Source§fn clone(&self) -> LocaleTagParts
fn clone(&self) -> LocaleTagParts
Returns a duplicate 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 LocaleTagParts
impl Debug for LocaleTagParts
Source§impl Hash for LocaleTagParts
impl Hash for LocaleTagParts
Source§impl Ord for LocaleTagParts
impl Ord for LocaleTagParts
Source§fn cmp(&self, other: &LocaleTagParts) -> Ordering
fn cmp(&self, other: &LocaleTagParts) -> 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 LocaleTagParts
impl PartialEq for LocaleTagParts
Source§impl PartialOrd for LocaleTagParts
impl PartialOrd for LocaleTagParts
impl Eq for LocaleTagParts
impl StructuralPartialEq for LocaleTagParts
Auto Trait Implementations§
impl Freeze for LocaleTagParts
impl RefUnwindSafe for LocaleTagParts
impl Send for LocaleTagParts
impl Sync for LocaleTagParts
impl Unpin for LocaleTagParts
impl UnsafeUnpin for LocaleTagParts
impl UnwindSafe for LocaleTagParts
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