pub struct Weak<I: Interface>(_, _);Expand description
Weak holds a non-owning reference to an object.
Implementations
Trait Implementations
impl<I: Eq + Interface> Eq for Weak<I>
impl<I: Interface> StructuralEq for Weak<I>
impl<I: Interface> StructuralPartialEq for Weak<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for Weak<I> where
I: RefUnwindSafe,
impl<I> !Send for Weak<I>
impl<I> !Sync for Weak<I>
impl<I> Unpin for Weak<I> where
I: Unpin,
impl<I> UnwindSafe for Weak<I> where
I: UnwindSafe,
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