pub enum PreferenceKind {
MediaType,
Language,
Encoding,
}Expand description
Content negotiation preference kind labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PreferenceKind
impl Clone for PreferenceKind
Source§fn clone(&self) -> PreferenceKind
fn clone(&self) -> PreferenceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreferenceKind
impl Debug for PreferenceKind
Source§impl Default for PreferenceKind
impl Default for PreferenceKind
Source§impl Display for PreferenceKind
impl Display for PreferenceKind
Source§impl FromStr for PreferenceKind
impl FromStr for PreferenceKind
Source§impl Hash for PreferenceKind
impl Hash for PreferenceKind
Source§impl Ord for PreferenceKind
impl Ord for PreferenceKind
Source§fn cmp(&self, other: &PreferenceKind) -> Ordering
fn cmp(&self, other: &PreferenceKind) -> Ordering
1.21.0 (const: unstable) · 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 PreferenceKind
impl PartialEq for PreferenceKind
Source§fn eq(&self, other: &PreferenceKind) -> bool
fn eq(&self, other: &PreferenceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PreferenceKind
impl PartialOrd for PreferenceKind
impl Copy for PreferenceKind
impl Eq for PreferenceKind
impl StructuralPartialEq for PreferenceKind
Auto Trait Implementations§
impl Freeze for PreferenceKind
impl RefUnwindSafe for PreferenceKind
impl Send for PreferenceKind
impl Sync for PreferenceKind
impl Unpin for PreferenceKind
impl UnsafeUnpin for PreferenceKind
impl UnwindSafe for PreferenceKind
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