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§
Source§impl<VTable: VTableMetaDropInPlace + 'static, X> VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X> VWeak<VTable, X>
Source§impl<VTable: VTableMetaDropInPlace + 'static, X: HasStaticVTable<VTable> + 'static> VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X: HasStaticVTable<VTable> + 'static> VWeak<VTable, X>
Trait Implementations§
Source§impl<VTable: VTableMetaDropInPlace + 'static, X> Clone for VWeak<VTable, X>
impl<VTable: VTableMetaDropInPlace + 'static, X> Clone for VWeak<VTable, X>
Source§impl<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> Freeze for VWeak<VTable, X>
impl<VTable, X> RefUnwindSafe for VWeak<VTable, X>
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>
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