#[repr(transparent)]pub struct VtableRef<V: 'static>(_, _);
Implementations
sourceimpl<V: 'static> VtableRef<V>
impl<V: 'static> VtableRef<V>
sourcepub const unsafe fn new(vtable: &'static V) -> Self
pub const unsafe fn new(vtable: &'static V) -> Self
Safety: constructed vtable should only be used by reference, inside of WithVtables wrapper
pub fn table(&self) -> &'static V
pub fn into_raw(v: &Self) -> *const VtableRef<V>
pub fn into_raw_mut(v: Pin<&mut Self>) -> *mut VtableRef<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for VtableRef<V> where
V: RefUnwindSafe,
impl<V> Send for VtableRef<V> where
V: Sync,
impl<V> Sync for VtableRef<V> where
V: Sync,
impl<V> !Unpin for VtableRef<V>
impl<V> UnwindSafe for VtableRef<V> where
V: RefUnwindSafe,
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