pub struct ListItem {
pub key: String,
pub label: String,
pub detail: Option<String>,
pub tone: Tone,
pub selected: bool,
pub removable: bool,
pub value: Option<f64>,
}Expand description
One entry of a Control::List, with its own key: pressing it sends
super::Value::Press, removing it Remove, editing its value
Number.
Fields§
§key: String§label: String§detail: Option<String>Said about it, after the label.
tone: Tone§selected: bool§removable: bool§value: Option<f64>A number to show and edit in place.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ListItem
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnsafeUnpin for ListItem
impl UnwindSafe for ListItem
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