Struct LocaleTagParts
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§
§impl LocaleTagParts
impl LocaleTagParts
pub fn to_tag_string(&self) -> String
pub fn to_tag_string(&self) -> String
Builds the normalized tag string represented by these parts.
Trait Implementations§
§impl Clone for LocaleTagParts
impl Clone for LocaleTagParts
§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 more§impl Debug for LocaleTagParts
impl Debug for LocaleTagParts
§impl Hash for LocaleTagParts
impl Hash for LocaleTagParts
§impl Ord for LocaleTagParts
impl Ord for LocaleTagParts
§impl PartialEq for LocaleTagParts
impl PartialEq for LocaleTagParts
§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