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
Source§fn clone(&self) -> BuddyAllocParam
fn clone(&self) -> BuddyAllocParam
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 moreimpl Copy for BuddyAllocParam
Auto Trait Implementations§
impl Freeze for BuddyAllocParam
impl RefUnwindSafe for BuddyAllocParam
impl !Send for BuddyAllocParam
impl !Sync for BuddyAllocParam
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more