pub struct DefaultAllocator;Expand description
Default allocator using the standard library’s global allocator.
This allocator uses std::alloc::alloc and std::alloc::dealloc for memory
management. It aligns allocations to page size for optimal performance with large buffers.
§Alignment
- On 64-bit systems: Uses 2MiB alignment for potential huge page support
- On other systems: Uses 4KiB page alignment
Implementations§
Trait Implementations§
Source§impl Allocator for DefaultAllocator
impl Allocator for DefaultAllocator
Source§impl Clone for DefaultAllocator
impl Clone for DefaultAllocator
Source§fn clone(&self) -> DefaultAllocator
fn clone(&self) -> DefaultAllocator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultAllocator
impl Debug for DefaultAllocator
Source§impl Default for DefaultAllocator
impl Default for DefaultAllocator
Source§fn default() -> DefaultAllocator
fn default() -> DefaultAllocator
Returns the “default value” for a type. Read more
impl Copy for DefaultAllocator
Auto Trait Implementations§
impl Freeze for DefaultAllocator
impl RefUnwindSafe for DefaultAllocator
impl Send for DefaultAllocator
impl Sync for DefaultAllocator
impl Unpin for DefaultAllocator
impl UnwindSafe for DefaultAllocator
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