pub struct AllocatorConfig {
pub use_custom: bool,
pub small_pool_size: u64,
pub large_pool_size: u64,
}Expand description
Memory allocator configuration
Fields§
§use_custom: boolUse custom allocator for better performance
small_pool_size: u64Pool size for small allocations
large_pool_size: u64Pool size for large allocations
Trait Implementations§
Source§impl Clone for AllocatorConfig
impl Clone for AllocatorConfig
Source§fn clone(&self) -> AllocatorConfig
fn clone(&self) -> AllocatorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AllocatorConfig
impl Debug for AllocatorConfig
Source§impl Default for AllocatorConfig
impl Default for AllocatorConfig
Source§impl<'de> Deserialize<'de> for AllocatorConfig
impl<'de> Deserialize<'de> for AllocatorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AllocatorConfig
impl RefUnwindSafe for AllocatorConfig
impl Send for AllocatorConfig
impl Sync for AllocatorConfig
impl Unpin for AllocatorConfig
impl UnsafeUnpin for AllocatorConfig
impl UnwindSafe for AllocatorConfig
Blanket Implementations§
impl<T> Allocation for T
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