#[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 c_void
pub fn into_raw_mut(v: &mut Self) -> *mut c_void
sourcepub unsafe fn from_raw<'r>(raw: *const c_void) -> &'r Self
pub unsafe fn from_raw<'r>(raw: *const c_void) -> &'r Self
Safety: lifetime should be correctly specified
sourcepub unsafe fn from_raw_mut<'r>(raw: *mut c_void) -> &'r mut Self
pub unsafe fn from_raw_mut<'r>(raw: *mut c_void) -> &'r mut Self
Safety: lifetime should be correctly specified
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more