pub struct OxPtrMut {
pub shape: &'static Shape,
/* private fields */
}Expand description
Mutable shaped pointer for vtable use.
Bundles a pointer with its shape. No lifetime parameter - safety is the caller’s responsibility.
Fields§
§shape: &'static ShapeThe shape describing the type.
Implementations§
Source§impl OxPtrMut
impl OxPtrMut
Sourcepub const fn new(ptr: PtrMut, shape: &'static Shape) -> Self
pub const fn new(ptr: PtrMut, shape: &'static Shape) -> Self
Create a new OxPtrMut from a pointer and shape.
Sourcepub const fn as_const(&self) -> OxPtrConst
pub const fn as_const(&self) -> OxPtrConst
Convert to a read-only OxPtrConst.
Sourcepub const fn as_uninit(&self) -> OxPtrUninit
pub const fn as_uninit(&self) -> OxPtrUninit
Convert to an uninitialized OxPtrUninit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OxPtrMut
impl RefUnwindSafe for OxPtrMut
impl !Send for OxPtrMut
impl !Sync for OxPtrMut
impl Unpin for OxPtrMut
impl UnwindSafe for OxPtrMut
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