pub struct Property<T> { /* private fields */ }
Expand description
Used to define a bindable property. See crate-level documentation for more details.
Implementations
sourceimpl<T> Property<T>
impl<T> Property<T>
sourcepub fn bind(&self) -> PropertyBinding<T>
pub fn bind(&self) -> PropertyBinding<T>
Attempts to bind the property.
Panics
This will panic if called while the property is already bound.
sourcepub fn try_bind(&self) -> Result<PropertyBinding<T>, ()>
pub fn try_bind(&self) -> Result<PropertyBinding<T>, ()>
Safer alternative to bind.
Returns Ok(PropertyBinding<T>)
upon successful binding and Err(())
if the Property
was already bound.
Trait Implementations
impl<T: Send> Send for Property<T>
impl<T: Send + Sync> Sync for Property<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Property<T>
impl<T> Unpin for Property<T> where
T: Unpin,
impl<T> UnwindSafe for Property<T> where
T: UnwindSafe,
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