pub struct LinearConfig {
pub line_size: Size,
}
Expand description
Config for LinearAllocator
.
Refer to documentation on LinearAllocator
to better understand what the configuration options mean.
Fields§
§line_size: Size
Size in bytes of each Line
.
If you try to create an allocation larger then this your allocation will fall back to the general allocator.
Trait Implementations§
Source§impl Clone for LinearConfig
impl Clone for LinearConfig
Source§fn clone(&self) -> LinearConfig
fn clone(&self) -> LinearConfig
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 LinearConfig
impl Debug for LinearConfig
impl Copy for LinearConfig
Auto Trait Implementations§
impl Freeze for LinearConfig
impl RefUnwindSafe for LinearConfig
impl Send for LinearConfig
impl Sync for LinearConfig
impl Unpin for LinearConfig
impl UnwindSafe for LinearConfig
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