Struct froggy::WeakPointer
[−]
[src]
pub struct WeakPointer<T> { /* fields omitted */ }
Weak variant of Pointer
.
Methods
impl<T> WeakPointer<T>
[src]
fn upgrade(&self) -> Result<Pointer<T>, DeadComponentError>
Upgrades the WeakPointer
to a Pointer
, if possible.
Returns Err
if the strong count has reached zero or the inner value was destroyed.
Trait Implementations
impl<T> Clone for WeakPointer<T>
[src]
fn clone(&self) -> WeakPointer<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more