Struct vtable::VWeakMapped
source · [−]pub struct VWeakMapped<VTable: VTableMetaDropInPlace + 'static, MappedType: ?Sized> { /* private fields */ }
Expand description
VWeakMapped allows bundling a VWeak with a reference to an object that’s reachable
from the object a successfully upgraded VWeak points to. VWeakMapped’s API consists
only of the ability to create clones and to attempt upgrading back to a VRcMapped
.
Implementations
sourceimpl<VTable: VTableMetaDropInPlace + 'static, MappedType: ?Sized> VWeakMapped<VTable, MappedType>
impl<VTable: VTableMetaDropInPlace + 'static, MappedType: ?Sized> VWeakMapped<VTable, MappedType>
Trait Implementations
sourceimpl<VTable: VTableMetaDropInPlace + 'static, MappedType: ?Sized> Clone for VWeakMapped<VTable, MappedType>
impl<VTable: VTableMetaDropInPlace + 'static, MappedType: ?Sized> Clone for VWeakMapped<VTable, MappedType>
sourceimpl<VTable: VTableMetaDropInPlace + 'static, MappedType> Default for VWeakMapped<VTable, MappedType>
impl<VTable: VTableMetaDropInPlace + 'static, MappedType> Default for VWeakMapped<VTable, MappedType>
Auto Trait Implementations
impl<VTable, MappedType: ?Sized> RefUnwindSafe for VWeakMapped<VTable, MappedType> where
MappedType: RefUnwindSafe,
<VTable as VTableMeta>::VTable: RefUnwindSafe,
impl<VTable, MappedType> !Send for VWeakMapped<VTable, MappedType>
impl<VTable, MappedType> !Sync for VWeakMapped<VTable, MappedType>
impl<VTable, MappedType: ?Sized> Unpin for VWeakMapped<VTable, MappedType>
impl<VTable, MappedType: ?Sized> UnwindSafe for VWeakMapped<VTable, MappedType> where
MappedType: 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more