[][src]Struct small_ord_set::KeyValuePair

pub struct KeyValuePair<K, V> {
    pub key: K,
    pub value: V,
}

A key-value pair. When used as the element type of a SmallOrdSet, it acts as a map.

Comparisons of this type only look at the key. This property also applies to SmallOrdSet<KeyValuePair>.

Fields

key: K

The key, used for checking ordering and equality.

value: V

The value.

Trait Implementations

impl<K, V> Borrow<K> for KeyValuePair<K, V>[src]

impl<K: Clone, V: Clone> Clone for KeyValuePair<K, V>[src]

impl<K: Copy, V: Copy> Copy for KeyValuePair<K, V>[src]

impl<K: Debug, V: Debug> Debug for KeyValuePair<K, V>[src]

impl<K: Default, V: Default> Default for KeyValuePair<K, V>[src]

impl<K: Eq, V> Eq for KeyValuePair<K, V>[src]

impl<K: Hash, V> Hash for KeyValuePair<K, V>[src]

impl<K: Ord, V> Ord for KeyValuePair<K, V>[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]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for KeyValuePair<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe
[src]

impl<K, V> Send for KeyValuePair<K, V> where
    K: Send,
    V: Send
[src]

impl<K, V> Sync for KeyValuePair<K, V> where
    K: Sync,
    V: Sync
[src]

impl<K, V> Unpin for KeyValuePair<K, V> where
    K: Unpin,
    V: Unpin
[src]

impl<K, V> UnwindSafe for KeyValuePair<K, V> where
    K: UnwindSafe,
    V: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.