Struct vtable::VWeak [−][src]
#[repr(transparent)]pub struct VWeak<VTable: VTableMetaDropInPlace + 'static, X = Dyn> { /* fields omitted */ }
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 std::rc::Weak.
Can be constructed with VRc::downgrade and use VWeak::upgrade
to re-create the original VRc.
Implementations
impl<VTable: VTableMetaDropInPlace + 'static, X: HasStaticVTable<VTable> + 'static> VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X: HasStaticVTable<VTable> + 'static> VWeak<VTable, X>
Trait Implementations
Auto Trait Implementations
impl<VTable, X> RefUnwindSafe for VWeak<VTable, X> where
X: RefUnwindSafe,
<VTable as VTableMeta>::VTable: RefUnwindSafe,
impl<VTable, X> UnwindSafe for VWeak<VTable, X> where
X: RefUnwindSafe,
<VTable as VTableMeta>::VTable: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more