Struct coca::object::ObjectLayout
source · [−]pub struct ObjectLayout(_);
This is supported on crate feature
unstable
only.Expand description
The LayoutSpec
for Object
storage.
Trait Implementations
sourceimpl LayoutSpec for ObjectLayout
impl LayoutSpec for ObjectLayout
sourcefn layout_with_capacity(bytes: usize) -> Result<Layout, LayoutError>
fn layout_with_capacity(bytes: usize) -> Result<Layout, LayoutError>
sourceimpl<A, const N: usize> Storage<ObjectLayout> for InlineStorage<A, N>
impl<A, const N: usize> Storage<ObjectLayout> for InlineStorage<A, N>
sourcefn capacity(&self) -> usize
fn capacity(&self) -> usize
Returns the maximum number of items the memory block can hold. Read more
sourcefn get_ptr(&self) -> *const u8
fn get_ptr(&self) -> *const u8
Extracts a pointer to the beginning of the memory block. Read more
sourcefn get_mut_ptr(&mut self) -> *mut u8
fn get_mut_ptr(&mut self) -> *mut u8
Extracts a mutable pointer to the beginning of the memory block. Read more
Auto Trait Implementations
impl RefUnwindSafe for ObjectLayout
impl Send for ObjectLayout
impl Sync for ObjectLayout
impl Unpin for ObjectLayout
impl UnwindSafe for ObjectLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more