pub struct LanguageRanges(pub Vec<LanguageRange>);
Tuple Fields§
§0: Vec<LanguageRange>
Implementations§
Source§impl LanguageRanges
impl LanguageRanges
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 LanguageRanges
impl Clone for LanguageRanges
Source§fn clone(&self) -> LanguageRanges
fn clone(&self) -> LanguageRanges
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 LanguageRanges
impl Debug for LanguageRanges
Source§impl Hash for LanguageRanges
impl Hash for LanguageRanges
Source§impl Ord for LanguageRanges
impl Ord for LanguageRanges
Source§fn cmp(&self, other: &LanguageRanges) -> Ordering
fn cmp(&self, other: &LanguageRanges) -> 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 LanguageRanges
impl PartialEq for LanguageRanges
Source§impl PartialOrd for LanguageRanges
impl PartialOrd for LanguageRanges
Source§impl ToCss for LanguageRanges
impl ToCss for LanguageRanges
impl Eq for LanguageRanges
impl StructuralPartialEq for LanguageRanges
Auto Trait Implementations§
impl Freeze for LanguageRanges
impl RefUnwindSafe for LanguageRanges
impl Send for LanguageRanges
impl Sync for LanguageRanges
impl Unpin for LanguageRanges
impl UnwindSafe for LanguageRanges
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