pub struct Prop<T>(/* private fields */);Expand description
A widget property: either a value set once, or a binding that reruns whenever a signal it read changes.
You never build one yourself. Widget methods take impl IntoProp<T>, so
.height(30) sets a value and .height(move || ...) makes a binding.
Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Prop<T>
impl<T> !Send for Prop<T>
impl<T> !Sync for Prop<T>
impl<T> !UnwindSafe for Prop<T>
impl<T> Forget for Prop<T>
impl<T> Freeze for Prop<T>where
PropKind<T>: Freeze,
impl<T> Move for Prop<T>
impl<T> Unpin for Prop<T>where
PropKind<T>: Unpin,
impl<T> UnsafeUnpin for Prop<T>where
PropKind<T>: UnsafeUnpin,
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