pub struct Property<T> { /* private fields */ }Expand description
Used to define a bindable property. See crate-level documentation for more details.
Implementations§
Source§impl<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> !Freeze for Property<T>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more