pub enum Payload {
None,
Bool,
Index,
Number,
}Expand description
What a widget hands its message constructor when it fires.
A Button holds an M. A Checkbox holds a fn(bool) -> M, a List a
fn(usize) -> M, a Slider a fn(f32) -> M. An engine resolving a name from
a file into the application’s message type has to know which, so the
descriptor says.
Variants§
None
The widget holds the message itself: M.
Bool
fn(bool) -> M — a checkbox, a toggle, a collapse.
Index
fn(usize) -> M — anything that selects one of several.
Number
fn(f32) -> M — a slider, a rating.
Trait Implementations§
impl Copy for Payload
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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