[−][src]Struct rendezvous_hash::KeyValueNode
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]
K: Hash + PartialEq + Ord,
type NodeId = K
Node identifier type.
type HashCode = u64
Hash code type.
fn node_id(&self) -> &Self::NodeId
[src]
fn hash_code<H, U: Hash>(&self, hasher: &H, item: &U) -> Self::HashCode where
H: NodeHasher<Self::NodeId>,
[src]
H: NodeHasher<Self::NodeId>,
impl<K: Clone, V: Clone> Clone for KeyValueNode<K, V>
[src]
fn clone(&self) -> KeyValueNode<K, V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
K: Send,
V: Send,
impl<K, V> Sync for KeyValueNode<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for KeyValueNode<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for KeyValueNode<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
impl<K, V> RefUnwindSafe for KeyValueNode<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
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]
U: From<T>,
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 = Infallible
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,