pub struct LanguageRange(pub Atom);
Tuple Fields§
§0: Atom
Implementations§
Source§impl LanguageRange
impl LanguageRange
Sourcepub fn matches_language(&self, tag: &str) -> bool
pub fn matches_language(&self, tag: &str) -> bool
Returns whether the language is matched, as defined by RFC 4647.
Trait Implementations§
Source§impl Clone for LanguageRange
impl Clone for LanguageRange
Source§fn clone(&self) -> LanguageRange
fn clone(&self) -> LanguageRange
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 moreSource§impl Debug for LanguageRange
impl Debug for LanguageRange
Source§impl Hash for LanguageRange
impl Hash for LanguageRange
Source§impl Ord for LanguageRange
impl Ord for LanguageRange
Source§fn cmp(&self, other: &LanguageRange) -> Ordering
fn cmp(&self, other: &LanguageRange) -> 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 LanguageRange
impl PartialEq for LanguageRange
Source§impl PartialOrd for LanguageRange
impl PartialOrd for LanguageRange
Source§impl ToCss for LanguageRange
impl ToCss for LanguageRange
impl Eq for LanguageRange
impl StructuralPartialEq for LanguageRange
Auto Trait Implementations§
impl Freeze for LanguageRange
impl RefUnwindSafe for LanguageRange
impl Send for LanguageRange
impl Sync for LanguageRange
impl Unpin for LanguageRange
impl UnwindSafe for LanguageRange
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