Struct autosar_data::WeakElement
source · [−]pub struct WeakElement(_);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
sourceimpl Clone for WeakElement
impl Clone for WeakElement
sourcefn clone(&self) -> WeakElement
fn clone(&self) -> WeakElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WeakElement
impl Debug for WeakElement
sourceimpl PartialEq<WeakElement> for WeakElement
impl PartialEq<WeakElement> for WeakElement
Auto Trait Implementations
impl !RefUnwindSafe for WeakElement
impl Send for WeakElement
impl Sync for WeakElement
impl Unpin for WeakElement
impl !UnwindSafe for WeakElement
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