Struct librsnek::system::rc::WeakRc1.4.0 [] [src]

pub struct WeakRc<T> where
    T: ?Sized
{ ptr: Shared<RcBox<T>>, }

Weak is a version of [Rc] that holds a non-owning reference to the

Fields

Methods

impl<T> Weak<T>
[src]

Constructs a new Weak<T>, allocating memory for T without initializing

impl<T> Weak<T> where
    T: ?Sized
[src]

Attempts to upgrade the Weak pointer to an [Rc], extending

Trait Implementations

impl<T> !Sync for Weak<T> where
    T: ?Sized
[src]

impl<T> Drop for Weak<T> where
    T: ?Sized
[src]

Drops the Weak pointer.

impl<T, U> CoerceUnsized<Weak<U>> for Weak<T> where
    T: Unsize<U> + ?Sized,
    U: ?Sized
[src]

impl<T> Clone for Weak<T> where
    T: ?Sized
[src]

Makes a clone of the Weak pointer that points to the same value.

Performs copy-assignment from source.

impl<T> Debug for Weak<T> where
    T: Debug + ?Sized
[src]

Formats the value using the given formatter.

impl<T> Default for Weak<T>
1.10.0
[src]

Constructs a new Weak<T>, allocating memory for T without initializing

impl<T> !Send for Weak<T> where
    T: ?Sized
[src]