pub struct GeneralConfig {
pub block_size_granularity: Size,
pub max_chunk_size: Size,
pub min_device_allocation: Size,
}
Expand description
Config for GeneralAllocator
.
Fields§
§block_size_granularity: Size
All requests are rounded up to multiple of this value.
max_chunk_size: Size
Maximum chunk of blocks size.
Actual chunk size is min(max_chunk_size, block_size * blocks_per_chunk)
min_device_allocation: Size
Minimum size of device allocation.
Trait Implementations§
Source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
Source§fn clone(&self) -> GeneralConfig
fn clone(&self) -> GeneralConfig
Returns a copy 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 GeneralConfig
impl Debug for GeneralConfig
impl Copy for GeneralConfig
Auto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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