pub struct MediaRange(pub Mime);
Expand description
Wrapper for mime::MediaRange
to support BTree{Set, Map}
.
Tuple Fields§
§0: Mime
Trait Implementations§
source§impl Clone for MediaRange
impl Clone for MediaRange
source§fn clone(&self) -> MediaRange
fn clone(&self) -> MediaRange
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 Debug for MediaRange
impl Debug for MediaRange
source§impl<'de> Deserialize<'de> for MediaRange
impl<'de> Deserialize<'de> for MediaRange
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for MediaRange
impl Ord for MediaRange
source§fn cmp(&self, other: &MediaRange) -> Ordering
fn cmp(&self, other: &MediaRange) -> 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 MediaRange
impl PartialEq for MediaRange
source§impl PartialOrd for MediaRange
impl PartialOrd for MediaRange
source§impl Serialize for MediaRange
impl Serialize for MediaRange
impl Eq for MediaRange
Auto Trait Implementations§
impl Freeze for MediaRange
impl RefUnwindSafe for MediaRange
impl Send for MediaRange
impl Sync for MediaRange
impl Unpin for MediaRange
impl UnwindSafe for MediaRange
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.