pub struct Selectable {
pub id: String,
pub text: String,
pub selected: bool,
}Expand description
A Widget::Selectable: words that light up while selected, told
as PanelEvent::Button when clicked; a few in a Widget::Flow pick
one of them.
Fields§
§id: String§text: String§selected: boolTrait Implementations§
Source§impl Clone for Selectable
impl Clone for Selectable
Source§impl Debug for Selectable
impl Debug for Selectable
Source§impl Default for Selectable
impl Default for Selectable
Source§impl<'de> Deserialize<'de> for Selectablewhere
Selectable: Default,
impl<'de> Deserialize<'de> for Selectablewhere
Selectable: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Selectable> for Widget
impl From<Selectable> for Widget
Source§fn from(block: Selectable) -> Self
fn from(block: Selectable) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Selectable
impl PartialEq for Selectable
Source§impl Serialize for Selectable
impl Serialize for Selectable
impl StructuralPartialEq for Selectable
Auto Trait Implementations§
impl Forget for Selectable
impl Freeze for Selectable
impl Move for Selectable
impl RefUnwindSafe for Selectable
impl Send for Selectable
impl Sync for Selectable
impl Unpin for Selectable
impl UnsafeUnpin for Selectable
impl UnwindSafe for Selectable
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