Expand description
A weak reference to an object.
Create a new empty weak reference.
upgrade
will always return None
until an object is set on it.
Set this weak reference to the given object.
Try to upgrade this weak reference to a strong reference.
If the stored object was already destroyed or no object was set in this weak reference then
None
is returned.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
Try upgrading a weak reference to a strong reference.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.