Enum langtag::GrandfatheredLangTag
source · pub enum GrandfatheredLangTag {
Show 26 variants
EnGbOed,
IAmi,
IBnn,
IDefault,
IEnochian,
IHak,
IKlingon,
ILux,
IMingo,
INavajo,
IPwn,
ITao,
ITay,
ITsu,
SgnBeFr,
SgnBeNl,
SgnChDe,
ArtLojban,
CelGaulish,
NoBok,
NoNyn,
ZhGuoyu,
ZhHakka,
ZhMin,
ZhMinNan,
ZhXiang,
}
Expand description
Grandfathered tags.
Prior to RFC 4646, whole language tags were registered according to the rules in RFC 1766 and/or RFC 3066. All of these registered tags remain valid as language tags. Many of these registered tags were made redundant by the advent of either RFC 4646 or RFC 5646. The remainder of the previously registered tags are “grandfathered”, and are all veriants of this enum type.
Variants§
EnGbOed
IAmi
IBnn
IDefault
IEnochian
IHak
IKlingon
ILux
IMingo
IPwn
ITao
ITay
ITsu
SgnBeFr
SgnBeNl
SgnChDe
ArtLojban
CelGaulish
NoBok
NoNyn
ZhGuoyu
ZhHakka
ZhMin
ZhMinNan
ZhXiang
Implementations§
Trait Implementations§
source§impl Clone for GrandfatheredLangTag
impl Clone for GrandfatheredLangTag
source§fn clone(&self) -> GrandfatheredLangTag
fn clone(&self) -> GrandfatheredLangTag
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 Display for GrandfatheredLangTag
impl Display for GrandfatheredLangTag
source§impl Hash for GrandfatheredLangTag
impl Hash for GrandfatheredLangTag
source§impl Ord for GrandfatheredLangTag
impl Ord for GrandfatheredLangTag
source§fn cmp(&self, other: &GrandfatheredLangTag) -> Ordering
fn cmp(&self, other: &GrandfatheredLangTag) -> 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 GrandfatheredLangTag
impl PartialEq for GrandfatheredLangTag
source§fn eq(&self, other: &GrandfatheredLangTag) -> bool
fn eq(&self, other: &GrandfatheredLangTag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GrandfatheredLangTag
impl PartialOrd for GrandfatheredLangTag
source§fn partial_cmp(&self, other: &GrandfatheredLangTag) -> Option<Ordering>
fn partial_cmp(&self, other: &GrandfatheredLangTag) -> 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 moresource§impl<'a> TryFrom<&'a [u8]> for GrandfatheredLangTag
impl<'a> TryFrom<&'a [u8]> for GrandfatheredLangTag
impl Copy for GrandfatheredLangTag
impl Eq for GrandfatheredLangTag
impl StructuralPartialEq for GrandfatheredLangTag
Auto Trait Implementations§
impl RefUnwindSafe for GrandfatheredLangTag
impl Send for GrandfatheredLangTag
impl Sync for GrandfatheredLangTag
impl Unpin for GrandfatheredLangTag
impl UnwindSafe for GrandfatheredLangTag
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