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§
Sourceconst CHILDREN_COUNT: usize
const CHILDREN_COUNT: usize
The number of children that a node can have. This has to be an even number.
Required Associated Types§
Sourcetype ConcreteAllocator: Allocator
type ConcreteAllocator: Allocator
The concrete allocator type.
Required Methods§
Sourcefn allocator_mut(&mut self) -> &mut Self::ConcreteAllocator
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".