pub struct Allocation {
pub addr: u64,
pub len: usize,
}Expand description
Allocation result
Fields§
§addr: u64Starting address of the allocation
len: usizeCapacity of the allocation in bytes, rounded up to the allocator’s slot size.
Trait Implementations§
Source§impl Clone for Allocation
impl Clone for Allocation
Source§fn clone(&self) -> Allocation
fn clone(&self) -> Allocation
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 moreimpl Copy for Allocation
Source§impl Debug for Allocation
impl Debug for Allocation
Source§impl From<BufferElement> for Allocation
impl From<BufferElement> for Allocation
Source§fn from(value: BufferElement) -> Self
fn from(value: BufferElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnsafeUnpin for Allocation
impl UnwindSafe for Allocation
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