[−][src]Struct small_ord_set::KeyValuePair
A key-value pair. When used as the element type of a SmallOrdSet
, it
acts as a map.
Fields
key: K
The key, used for checking ordering and equality.
value: V
The value.
Trait Implementations
impl<K: Clone, V: Clone> Clone for KeyValuePair<K, V>
[src]
fn clone(&self) -> KeyValuePair<K, V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Copy, V: Copy> Copy for KeyValuePair<K, V>
[src]
impl<K: Default, V: Default> Default for KeyValuePair<K, V>
[src]
fn default() -> KeyValuePair<K, V>
[src]
impl<K: Eq, V> Eq for KeyValuePair<K, V>
[src]
impl<K: Ord, V> Ord for KeyValuePair<K, V>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<K: PartialEq, V> PartialEq<KeyValuePair<K, V>> for KeyValuePair<K, V>
[src]
impl<K: PartialOrd, V> PartialOrd<KeyValuePair<K, V>> for KeyValuePair<K, V>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K: Debug, V: Debug> Debug for KeyValuePair<K, V>
[src]
impl<K: Hash, V> Hash for KeyValuePair<K, V>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<K, V> Borrow<K> for KeyValuePair<K, V>
[src]
Auto Trait Implementations
impl<K, V> Send for KeyValuePair<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for KeyValuePair<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for KeyValuePair<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for KeyValuePair<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
impl<K, V> RefUnwindSafe for KeyValuePair<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,