pub struct AVLTree<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> {
pub root: u64,
/* private fields */
}
Fields
root: u64
Implementations
Trait Implementations
sourceimpl<K: Clone + PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Clone + Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Clone for AVLTree<K, V, MAX_SIZE>
impl<K: Clone + PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Clone + Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Clone for AVLTree<K, V, MAX_SIZE>
sourceimpl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Default for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Default for AVLTree<K, V, MAX_SIZE>
sourceimpl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> FromSlice for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> FromSlice for AVLTree<K, V, MAX_SIZE>
fn new_from_slice(slice: &mut [u8]) -> &mut Self
sourceimpl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Index<&K> for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Index<&K> for AVLTree<K, V, MAX_SIZE>
sourceimpl<const MAX_SIZE: usize, K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable> IndexMut<&K> for AVLTree<K, V, MAX_SIZE>
impl<const MAX_SIZE: usize, K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable> IndexMut<&K> for AVLTree<K, V, MAX_SIZE>
sourceimpl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> NodeAllocatorMap<K, V> for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> NodeAllocatorMap<K, V> for AVLTree<K, V, MAX_SIZE>
fn insert(&mut self, key: K, value: V) -> Option<u32>
fn remove(&mut self, key: &K) -> Option<V>
fn contains(&self, key: &K) -> bool
fn size(&self) -> usize
fn iter(&self) -> Box<dyn Iterator<Item = (&K, &V)> + '_>
fn iter_mut(&mut self) -> Box<dyn Iterator<Item = (&K, &mut V)> + '_>
sourceimpl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> ZeroCopy for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> ZeroCopy for AVLTree<K, V, MAX_SIZE>
fn load_mut_bytes(data: &mut [u8]) -> Option<&mut Self>
fn load_bytes(data: &[u8]) -> Option<&Self>
sourceimpl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Zeroable for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Zeroable for AVLTree<K, V, MAX_SIZE>
impl<K: Copy + PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Copy + Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Copy for AVLTree<K, V, MAX_SIZE>
impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> Pod for AVLTree<K, V, MAX_SIZE>
Auto Trait Implementations
impl<K, V, const MAX_SIZE: usize> RefUnwindSafe for AVLTree<K, V, MAX_SIZE> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, const MAX_SIZE: usize> Send for AVLTree<K, V, MAX_SIZE> where
K: Send,
V: Send,
impl<K, V, const MAX_SIZE: usize> Sync for AVLTree<K, V, MAX_SIZE> where
K: Sync,
V: Sync,
impl<K, V, const MAX_SIZE: usize> Unpin for AVLTree<K, V, MAX_SIZE> where
K: Unpin,
V: Unpin,
impl<K, V, const MAX_SIZE: usize> UnwindSafe for AVLTree<K, V, MAX_SIZE> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
.