pub enum LenientLanguageTag<'a> {
WellFormed(LanguageTag<'a>),
Malformed(&'a str),
}
Expand description
Language tag that may not be well-formed.
Variants
WellFormed(LanguageTag<'a>)
Tuple Fields
0: LanguageTag<'a>
Malformed(&'a str)
Tuple Fields
0: &'a str
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for LenientLanguageTag<'a>
impl<'a> Send for LenientLanguageTag<'a>
impl<'a> Sync for LenientLanguageTag<'a>
impl<'a> Unpin for LenientLanguageTag<'a>
impl<'a> UnwindSafe for LenientLanguageTag<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more