#[repr(transparent)]pub struct VWeak<VTable: VTableMetaDropInPlace + 'static, X = Dyn> { /* private fields */ }
Expand description
Weak pointer for the VRc
where VTable
is a VTable struct, and
X
is the type of the instance, or Dyn
if it is not known
Similar to alloc::rc::Weak
.
Can be constructed with VRc::downgrade
and use VWeak::upgrade
to re-create the original VRc.
Implementations
sourceimpl<VTable: VTableMetaDropInPlace + 'static, X> VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X> VWeak<VTable, X>
sourceimpl<VTable: VTableMetaDropInPlace + 'static, X: HasStaticVTable<VTable> + 'static> VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X: HasStaticVTable<VTable> + 'static> VWeak<VTable, X>
Trait Implementations
sourceimpl<VTable: VTableMetaDropInPlace + 'static, X> Clone for VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X> Clone for VWeak<VTable, X>
sourceimpl<VTable: VTableMetaDropInPlace + 'static, X> Default for VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X> Default for VWeak<VTable, X>
Auto Trait Implementations
impl<VTable, X> RefUnwindSafe for VWeak<VTable, X> where
X: RefUnwindSafe,
<VTable as VTableMeta>::VTable: RefUnwindSafe,
impl<VTable, X = Dyn> !Send for VWeak<VTable, X>
impl<VTable, X = Dyn> !Sync for VWeak<VTable, X>
impl<VTable, X> Unpin for VWeak<VTable, X>
impl<VTable, X> UnwindSafe for VWeak<VTable, X> where
X: RefUnwindSafe,
<VTable as VTableMeta>::VTable: 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