pub struct BorrowedRawAllocation<'a> { /* private fields */ }
Expand description

Represents the unique borrow of a contiguous piece of a single allocation with some layout that is used as a data copying destination. May be wholly or partially uninitialized.

This type can only be obtained through the borrow_as_slab method on RawAllocation.

Trait Implementations

Get a pointer to the beginning of the allocation represented by self.
Get a pointer to the beginning of the allocation represented by self.
Get the size of the allocation represented by self.
Interpret a portion of self as a slice of MaybeUninit<u8>. This is likely not incredibly useful, you probably want to use Slab::as_maybe_uninit_bytes_mut Read more
Interpret a portion of self as a mutable slice of MaybeUninit<u8>.
Interpret self as a byte slice. This assumes that all bytes in self are initialized. Read more
Interpret self as a mutable byte slice. This assumes that all bytes in self are initialized. Read more
Interpret a range of self as a byte slice. This assumes that all bytes within range are initialized. Read more
Interpret a range of self as a mutable byte slice. This assumes that all bytes within range are initialized. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.