pub struct AllocatorBuilder { /* private fields */ }
Expand description
Used to construct an Allocator
using the builder pattern.
Implementations§
Source§impl AllocatorBuilder
impl AllocatorBuilder
Sourcepub fn large_heap_block_size(self, size: u64) -> AllocatorBuilder
pub fn large_heap_block_size(self, size: u64) -> AllocatorBuilder
Overrides the default block size for use on “large” heaps, in bytes. The default is 256MB.
Sourcepub fn small_heap_block_size(self, size: u64) -> AllocatorBuilder
pub fn small_heap_block_size(self, size: u64) -> AllocatorBuilder
Overrides the default block size for use on “small” heaps, in bytes. The default is 64MB.
Auto Trait Implementations§
impl Freeze for AllocatorBuilder
impl !RefUnwindSafe for AllocatorBuilder
impl Send for AllocatorBuilder
impl Sync for AllocatorBuilder
impl Unpin for AllocatorBuilder
impl !UnwindSafe for AllocatorBuilder
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