Struct serum_dex::critbit::Slab[][src]

#[repr(transparent)]
pub struct Slab(_);

Implementations

impl Slab[src]

pub fn new(bytes: &mut [u8]) -> &mut Self[src]

Creates a slab that holds and references the bytes

let slab = {
    let mut bytes = [10; 100];
    serum_dex::critbit::Slab::new(&mut bytes)
};

pub fn assert_minimum_capacity(&self, capacity: u32) -> DexResult[src]

impl Slab[src]

pub fn find_min(&self) -> Option<NodeHandle>[src]

pub fn find_max(&self) -> Option<NodeHandle>[src]

pub fn insert_leaf(
    &mut self,
    new_leaf: &LeafNode
) -> Result<(NodeHandle, Option<LeafNode>), SlabTreeError>
[src]

pub fn remove_by_key(&mut self, search_key: u128) -> Option<LeafNode>[src]

pub fn remove_min(&mut self) -> Option<LeafNode>[src]

pub fn remove_max(&mut self) -> Option<LeafNode>[src]

Trait Implementations

impl SlabView<AnyNode> for Slab[src]

fn capacity(&self) -> u64[src]

fn clear(&mut self)[src]

fn is_empty(&self) -> bool[src]

fn get(&self, key: u32) -> Option<&AnyNode>[src]

fn get_mut(&mut self, key: u32) -> Option<&mut AnyNode>[src]

fn insert(&mut self, val: &AnyNode) -> Result<u32, ()>[src]

fn remove(&mut self, key: u32) -> Option<AnyNode>[src]

fn contains(&self, key: u32) -> bool[src]

Auto Trait Implementations

impl RefUnwindSafe for Slab

impl Send for Slab

impl !Sized for Slab

impl Sync for Slab

impl Unpin for Slab

impl UnwindSafe for Slab

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more