pub struct VPtr<V: VmtLayout + ?Sized, T: 'static>(/* private fields */);Implementations§
Source§impl<T, V: VmtInstance<T> + ?Sized> VPtr<V, T>
impl<T, V: VmtInstance<T> + ?Sized> VPtr<V, T>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Construct a VPtr initialized with a pointer to T’s vtable for V.
This is the same as the Default::default implementation, but const.
Trait Implementations§
impl<V: VmtLayout + ?Sized, T: 'static> Copy for VPtr<V, T>
Auto Trait Implementations§
impl<V, T> Freeze for VPtr<V, T>where
V: ?Sized,
impl<V, T> RefUnwindSafe for VPtr<V, T>
impl<V, T> Send for VPtr<V, T>where
V: ?Sized,
impl<V, T> Sync for VPtr<V, T>where
V: ?Sized,
impl<V, T> Unpin for VPtr<V, T>where
V: ?Sized,
impl<V, T> UnwindSafe for VPtr<V, T>
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