pub struct KdValueMapImpl<K, V, Node, Balance: TreeHeightBound = Ratio<5, 4>>where
V: KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,{ /* private fields */ }Implementations§
Source§impl<K, V, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
impl<K, V, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
pub fn new() -> Selfwhere
Balance: Default,
pub fn with_balance(balance: Balance) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn contains_key(&mut self, key: &K) -> bool
pub fn keys(&self) -> impl Iterator<Item = &K>
pub fn into_keys(self) -> impl Iterator<Item = K>
pub fn values(&self) -> impl Iterator<Item = &V>
Source§impl<K, V, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,
Node::Ownership: Consumable<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
impl<K, V, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,
Node::Ownership: Consumable<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
Source§impl<K, V, Stat, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Stat: Height,
Node: ScapegoatKdNode<Value = KdValuePlus<V, K>> + Parent + Statistic<Stat = Stat>,
<Node as Ownable>::Ownership: KdInsertable<Node> + Consumable<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
impl<K, V, Stat, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Stat: Height,
Node: ScapegoatKdNode<Value = KdValuePlus<V, K>> + Parent + Statistic<Stat = Stat>,
<Node as Ownable>::Ownership: KdInsertable<Node> + Consumable<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
Source§impl<K, V, Stat, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
V: KdValue,
Stat: Default,
Node: KdSearchable<KdValuePlus<V, K>, WithHeight<Stat>> + KdNode<Value = KdValuePlus<V, K>> + Statistic<Stat = WithHeight<Stat>>,
Balance: TreeHeightBound,
impl<K, V, Stat, Node, Balance> KdValueMapImpl<K, V, Node, Balance>where
V: KdValue,
Stat: Default,
Node: KdSearchable<KdValuePlus<V, K>, WithHeight<Stat>> + KdNode<Value = KdValuePlus<V, K>> + Statistic<Stat = WithHeight<Stat>>,
Balance: TreeHeightBound,
pub fn search_values_with<S>(&self, searcher: &mut S)where
S: KdSearcher<KdValuePlus<V, K>, Stat>,
pub fn search_values<S>(&self, searcher: S) -> Swhere
S: KdSearcher<KdValuePlus<V, K>, Stat>,
Trait Implementations§
Source§impl<K, V, Node, Balance> Default for KdValueMapImpl<K, V, Node, Balance>
impl<K, V, Node, Balance> Default for KdValueMapImpl<K, V, Node, Balance>
Source§impl<K, V, Node, Balance> FromIterator<(K, V)> for KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Node: KdBuildableNode<Value = KdValuePlus<V, K>>,
<Node as Ownable>::Ownership: KdInsertable<Node>,
Balance: TreeHeightBound,
impl<K, V, Node, Balance> FromIterator<(K, V)> for KdValueMapImpl<K, V, Node, Balance>where
K: Clone + Eq + Hash,
V: KdValue,
Node: KdBuildableNode<Value = KdValuePlus<V, K>>,
<Node as Ownable>::Ownership: KdInsertable<Node>,
Balance: TreeHeightBound,
Source§impl<'a, K, V, Node, Balance> IntoIterator for &'a KdValueMapImpl<K, V, Node, Balance>where
K: 'a + Clone + Eq + Hash,
V: 'a + KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
impl<'a, K, V, Node, Balance> IntoIterator for &'a KdValueMapImpl<K, V, Node, Balance>where
K: 'a + Clone + Eq + Hash,
V: 'a + KdValue,
Node: KdNode<Value = KdValuePlus<V, K>>,
Balance: TreeHeightBound,
Auto Trait Implementations§
impl<K, V, Node, Balance> Freeze for KdValueMapImpl<K, V, Node, Balance>
impl<K, V, Node, Balance> RefUnwindSafe for KdValueMapImpl<K, V, Node, Balance>where
<Node as KdNode>::Tree: RefUnwindSafe,
Balance: RefUnwindSafe,
K: RefUnwindSafe,
Node: RefUnwindSafe,
impl<K, V, Node, Balance = Ratio<5, 4>> !Send for KdValueMapImpl<K, V, Node, Balance>
impl<K, V, Node, Balance = Ratio<5, 4>> !Sync for KdValueMapImpl<K, V, Node, Balance>
impl<K, V, Node, Balance> Unpin for KdValueMapImpl<K, V, Node, Balance>
impl<K, V, Node, Balance> UnwindSafe for KdValueMapImpl<K, V, Node, Balance>
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