pub struct LocaleTag { /* private fields */ }Expand description
A normalized locale tag.
Implementations§
Source§impl LocaleTag
impl LocaleTag
Sourcepub const fn parts(&self) -> &LocaleTagParts
pub const fn parts(&self) -> &LocaleTagParts
Returns the parsed locale tag parts.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the locale tag and returns the normalized string.
Trait Implementations§
Source§impl Ord for LocaleTag
impl Ord for LocaleTag
Source§impl PartialOrd for LocaleTag
impl PartialOrd for LocaleTag
impl Eq for LocaleTag
impl StructuralPartialEq for LocaleTag
Auto Trait Implementations§
impl Freeze for LocaleTag
impl RefUnwindSafe for LocaleTag
impl Send for LocaleTag
impl Sync for LocaleTag
impl Unpin for LocaleTag
impl UnsafeUnpin for LocaleTag
impl UnwindSafe for LocaleTag
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