pub struct OxPtrUninit {
pub shape: &'static Shape,
/* private fields */
}Expand description
Uninitialized shaped pointer for vtable use.
Bundles a pointer to uninitialized memory with its shape. No lifetime parameter - safety is the caller’s responsibility.
Fields§
§shape: &'static ShapeThe shape describing the type.
Implementations§
Source§impl OxPtrUninit
impl OxPtrUninit
Sourcepub const fn new(ptr: PtrUninit, shape: &'static Shape) -> OxPtrUninit
pub const fn new(ptr: PtrUninit, shape: &'static Shape) -> OxPtrUninit
Create a new OxPtrUninit from a pointer and shape.
Sourcepub const unsafe fn assume_init(self) -> OxPtrMut
pub const unsafe fn assume_init(self) -> OxPtrMut
Assumes the pointer is initialized and returns an OxPtrMut.
§Safety
The memory must actually be initialized.
Trait Implementations§
Source§impl Clone for OxPtrUninit
impl Clone for OxPtrUninit
Source§fn clone(&self) -> OxPtrUninit
fn clone(&self) -> OxPtrUninit
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 OxPtrUninit
Auto Trait Implementations§
impl Freeze for OxPtrUninit
impl RefUnwindSafe for OxPtrUninit
impl !Send for OxPtrUninit
impl !Sync for OxPtrUninit
impl Unpin for OxPtrUninit
impl UnwindSafe for OxPtrUninit
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