Skip to main content

BTreeConfig

Trait BTreeConfig 

Source
pub trait BTreeConfig: ReprC + Sized {
    type ConcreteAllocator: Allocator;

    const CHILDREN_COUNT: usize;

    // Required method
    fn allocator_mut(&mut self) -> &mut Self::ConcreteAllocator;
}
Expand description

The configuration trait for the BTree.

Required Associated Constants§

Source

const CHILDREN_COUNT: usize

The number of children that a node can have. This has to be an even number.

Required Associated Types§

Source

type ConcreteAllocator: Allocator

The concrete allocator type.

Required Methods§

Source

fn allocator_mut(&mut self) -> &mut Self::ConcreteAllocator

Returns the allocator for the BTree.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<TAllocator: Allocator> BTreeConfig for DefaultBTreeConfig<TAllocator>