[−][src]Struct rckad::KadTree
Implementations
impl<K: PartialEq + Serialize + Clone, V> KadTree<K, V>
[src]
pub fn new(key: K, value: V) -> Self
[src]
pub fn with_k_bucket(key: K, value: V, bucket: usize) -> Self
[src]
pub fn add(&mut self, key: K, value: V) -> bool
[src]
pub fn search(&self, key: &K) -> Option<(&K, &V, bool)>
[src]
pub fn remove(&mut self, key: &K) -> Option<V>
[src]
pub fn contains(&self, key: &K) -> bool
[src]
pub fn keys(&self) -> Vec<K>
[src]
Trait Implementations
Auto Trait Implementations
impl<K, V> Send for KadTree<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for KadTree<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for KadTree<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,