pub struct PtrUninitWide<'mem> { /* private fields */ }
Expand description
A type-erased, wide pointer to an uninitialized value.
This can be useful for working with dynamically sized types, like slices or trait objects, where both a pointer and metadata (such as length or vtable) need to be stored.
The lifetime 'mem
represents the borrow of the underlying uninitialized memory.
Trait Implementations§
Source§impl<'mem> Clone for PtrUninitWide<'mem>
impl<'mem> Clone for PtrUninitWide<'mem>
Source§fn clone(&self) -> PtrUninitWide<'mem>
fn clone(&self) -> PtrUninitWide<'mem>
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<'mem> Copy for PtrUninitWide<'mem>
Auto Trait Implementations§
impl<'mem> Freeze for PtrUninitWide<'mem>
impl<'mem> RefUnwindSafe for PtrUninitWide<'mem>
impl<'mem> !Send for PtrUninitWide<'mem>
impl<'mem> !Sync for PtrUninitWide<'mem>
impl<'mem> Unpin for PtrUninitWide<'mem>
impl<'mem> !UnwindSafe for PtrUninitWide<'mem>
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