Struct binder::PropertyBinding
source · [−]pub struct PropertyBinding<T> { /* private fields */ }
Expand description
A binding to a Property. Allows mutable and immutable access to the value via dereferencing.
Exclusive access is enforced by the borrow checker like any other mutable object.
PropertyBinding
automatically unbinds itself when Dropped, and allowing
the binding to leave scope and be Dropped is the preferred usage.
Safety
Cannot be cloned, as it is assumed to have an exclusive lock on the property. Thread-safe but not shareable. Send but not Sync.
Trait Implementations
sourceimpl<T: Debug> Debug for PropertyBinding<T>
impl<T: Debug> Debug for PropertyBinding<T>
sourceimpl<T> Deref for PropertyBinding<T>
impl<T> Deref for PropertyBinding<T>
sourceimpl<T> DerefMut for PropertyBinding<T>
impl<T> DerefMut for PropertyBinding<T>
sourceimpl<T> Drop for PropertyBinding<T>
impl<T> Drop for PropertyBinding<T>
impl<T: Send> Send for PropertyBinding<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PropertyBinding<T> where
T: RefUnwindSafe,
impl<T> !Sync for PropertyBinding<T>
impl<T> Unpin for PropertyBinding<T>
impl<T> UnwindSafe for PropertyBinding<T> where
T: RefUnwindSafe,
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