pub struct LanguageCode { /* private fields */ }Expand description
A normalized 2-letter or 3-letter language subtag.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for LanguageCode
impl AsRef<str> for LanguageCode
Source§impl Clone for LanguageCode
impl Clone for LanguageCode
Source§fn clone(&self) -> LanguageCode
fn clone(&self) -> LanguageCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LanguageCode
impl Debug for LanguageCode
Source§impl Display for LanguageCode
impl Display for LanguageCode
Source§impl Hash for LanguageCode
impl Hash for LanguageCode
Source§impl Ord for LanguageCode
impl Ord for LanguageCode
Source§fn cmp(&self, other: &LanguageCode) -> Ordering
fn cmp(&self, other: &LanguageCode) -> Ordering
1.21.0 (const: unstable) · 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 LanguageCode
impl PartialEq for LanguageCode
Source§fn eq(&self, other: &LanguageCode) -> bool
fn eq(&self, other: &LanguageCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LanguageCode
impl PartialOrd for LanguageCode
impl Eq for LanguageCode
impl StructuralPartialEq for LanguageCode
Auto Trait Implementations§
impl Freeze for LanguageCode
impl RefUnwindSafe for LanguageCode
impl Send for LanguageCode
impl Sync for LanguageCode
impl Unpin for LanguageCode
impl UnsafeUnpin for LanguageCode
impl UnwindSafe for LanguageCode
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