pub struct BuddyAllocParam {
base_addr: *const u8,
len: usize,
leaf_size: usize,
zero_filled: bool,
}Fields§
§base_addr: *const u8Base addr: the start address
len: usizeLen: available bytes from the start address
leaf_size: usizeLeaf size: the min size to allocate
zero_filled: boolZero filled: in many cases, provided address might already be zero filled, in which case we can reduce re-filling zeros to the data again.
Implementations§
Trait Implementations§
Source§impl Clone for BuddyAllocParam
impl Clone for BuddyAllocParam
impl Copy for BuddyAllocParam
Auto Trait Implementations§
impl !Send for BuddyAllocParam
impl !Sync for BuddyAllocParam
impl Freeze for BuddyAllocParam
impl RefUnwindSafe for BuddyAllocParam
impl Unpin for BuddyAllocParam
impl UnsafeUnpin for BuddyAllocParam
impl UnwindSafe for BuddyAllocParam
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