pub struct VirtualNode {
pub id: String,
pub hash: u64,
pub hashes: OrderSet<u64>,
}Fields§
§id: StringThe unique identifier for the virtual node.
hash: u64The hash value of the virtual node.
hashes: OrderSet<u64>A set of hash values associated with this virtual node.
Implementations§
Source§impl VirtualNode
impl VirtualNode
Sourcepub fn builder() -> VirtualNodeBuilder
pub fn builder() -> VirtualNodeBuilder
Create an instance of VirtualNode using the builder syntax
Trait Implementations§
Source§impl Clone for VirtualNode
impl Clone for VirtualNode
Source§fn clone(&self) -> VirtualNode
fn clone(&self) -> VirtualNode
Returns a duplicate of the value. Read more
1.0.0 · 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 VirtualNode
impl Debug for VirtualNode
Source§impl Hash for VirtualNode
impl Hash for VirtualNode
Source§impl PartialEq for VirtualNode
impl PartialEq for VirtualNode
impl Eq for VirtualNode
impl StructuralPartialEq for VirtualNode
Auto Trait Implementations§
impl Freeze for VirtualNode
impl RefUnwindSafe for VirtualNode
impl Send for VirtualNode
impl Sync for VirtualNode
impl Unpin for VirtualNode
impl UnwindSafe for VirtualNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.