pub struct Property<T> { /* private fields */ }
Expand description

Used to define a bindable property. See crate-level documentation for more details.

Implementations

Creates a new Property that owns the given value.

Attempts to bind the property.

Panics

This will panic if called while the property is already bound.

Safer alternative to bind. Returns Ok(PropertyBinding<T>) upon successful binding and Err(()) if the Property was already bound.

Trait Implementations

Formats the value using the given formatter. 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.