pub struct WeakElement(/* private fields */);Expand description
Weak reference to an Element
(see the documentation of std::sync::Arc for an explanation of weak references)
This WeakElement can be held indefinitely without forcing the referenced data to remain valid.
When access is needed, the method upgrade() will attempt to get a strong reference and return an Element
Implementations§
Trait Implementations§
Source§impl Clone for WeakElement
impl Clone for WeakElement
Source§fn clone(&self) -> WeakElement
fn clone(&self) -> WeakElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeakElement
impl Debug for WeakElement
Source§impl Hash for WeakElement
impl Hash for WeakElement
Source§impl PartialEq for WeakElement
impl PartialEq for WeakElement
impl Eq for WeakElement
Auto Trait Implementations§
impl Freeze for WeakElement
impl !RefUnwindSafe for WeakElement
impl Send for WeakElement
impl Sync for WeakElement
impl Unpin for WeakElement
impl !UnwindSafe for WeakElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.