pub struct MediaTypeKey(/* private fields */);
Expand description
The key is a media type or media type range and the value describes it.
Implementations§
Trait Implementations§
Source§impl Clone for MediaTypeKey
impl Clone for MediaTypeKey
Source§fn clone(&self) -> MediaTypeKey
fn clone(&self) -> MediaTypeKey
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 MediaTypeKey
impl Debug for MediaTypeKey
Source§impl From<MediaTypeKey> for String
impl From<MediaTypeKey> for String
Source§fn from(this: MediaTypeKey) -> Self
fn from(this: MediaTypeKey) -> Self
Converts to this type from the input type.
Source§impl Hash for MediaTypeKey
impl Hash for MediaTypeKey
Source§impl PartialEq for MediaTypeKey
impl PartialEq for MediaTypeKey
impl Eq for MediaTypeKey
impl StructuralPartialEq for MediaTypeKey
Auto Trait Implementations§
impl Freeze for MediaTypeKey
impl RefUnwindSafe for MediaTypeKey
impl Send for MediaTypeKey
impl Sync for MediaTypeKey
impl Unpin for MediaTypeKey
impl UnwindSafe for MediaTypeKey
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.