pub struct DefaultBTreeConfig<TAllocator: Allocator> { /* private fields */ }Expand description
The default configuration for BTree.
Implementations§
Source§impl<TAllocator: Allocator> DefaultBTreeConfig<TAllocator>
impl<TAllocator: Allocator> DefaultBTreeConfig<TAllocator>
Sourcepub fn new() -> Selfwhere
TAllocator: Default,
pub fn new() -> Selfwhere
TAllocator: Default,
Creates a new DefaultBTreeConfig with the default allocator.
Sourcepub const fn with_allocator(allocator: TAllocator) -> Self
pub const fn with_allocator(allocator: TAllocator) -> Self
Creates a new DefaultBTreeConfig with the specified allocator.
Trait Implementations§
Source§impl<TAllocator: Allocator> BTreeConfig for DefaultBTreeConfig<TAllocator>
impl<TAllocator: Allocator> BTreeConfig for DefaultBTreeConfig<TAllocator>
Source§const CHILDREN_COUNT: usize = 16
const CHILDREN_COUNT: usize = 16
The number of children that a node can have. This has
to be an even number.
Source§type ConcreteAllocator = TAllocator
type ConcreteAllocator = TAllocator
The concrete allocator type.
Source§fn allocator_mut(&mut self) -> &mut Self::ConcreteAllocator
fn allocator_mut(&mut self) -> &mut Self::ConcreteAllocator
Returns the allocator for the
BTree.Source§impl<TAllocator: Debug + Allocator> Debug for DefaultBTreeConfig<TAllocator>
impl<TAllocator: Debug + Allocator> Debug for DefaultBTreeConfig<TAllocator>
Source§impl<TAllocator: Default + Allocator> Default for DefaultBTreeConfig<TAllocator>
impl<TAllocator: Default + Allocator> Default for DefaultBTreeConfig<TAllocator>
Source§fn default() -> DefaultBTreeConfig<TAllocator>
fn default() -> DefaultBTreeConfig<TAllocator>
Returns the “default value” for a type. Read more
Source§impl<TAllocator: Allocator> ReprC for DefaultBTreeConfig<TAllocator>
impl<TAllocator: Allocator> ReprC for DefaultBTreeConfig<TAllocator>
Auto Trait Implementations§
impl<TAllocator> Freeze for DefaultBTreeConfig<TAllocator>where
TAllocator: Freeze,
impl<TAllocator> RefUnwindSafe for DefaultBTreeConfig<TAllocator>where
TAllocator: RefUnwindSafe,
impl<TAllocator> Send for DefaultBTreeConfig<TAllocator>where
TAllocator: Send,
impl<TAllocator> Sync for DefaultBTreeConfig<TAllocator>where
TAllocator: Sync,
impl<TAllocator> Unpin for DefaultBTreeConfig<TAllocator>where
TAllocator: Unpin,
impl<TAllocator> UnsafeUnpin for DefaultBTreeConfig<TAllocator>where
TAllocator: UnsafeUnpin,
impl<TAllocator> UnwindSafe for DefaultBTreeConfig<TAllocator>where
TAllocator: UnwindSafe,
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