[][src]Struct rendezvous_hash::KeyValueNode

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

Key-Value node.

Fields

key: K

The key of this node.

value: V

The value of this node.

Methods

impl<K, V> KeyValueNode<K, V>[src]

pub fn new(key: K, value: V) -> Self[src]

Makes a new KeyValueNode instance.

This is equivalent to KeyValueNode{node: node, value: value}.

Trait Implementations

impl<K, V> Node for KeyValueNode<K, V> where
    K: Hash + PartialEq + Ord
[src]

type NodeId = K

Node identifier type.

type HashCode = u64

Hash code type.

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

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

Auto Trait Implementations

impl<K, V> Send for KeyValueNode<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for KeyValueNode<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for KeyValueNode<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for KeyValueNode<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

impl<K, V> RefUnwindSafe for KeyValueNode<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

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.

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

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

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