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

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.