pub trait Checkable: IntoDynamic<CheckboxState> + Sized {
// Provided methods
fn into_checkbox(self, label: impl MakeWidget) -> Checkbox { ... }
fn to_checkbox(&self, label: impl MakeWidget) -> Checkbox
where Self: Clone { ... }
}
Expand description
A value that can be used as a checkbox.
Provided Methods§
sourcefn into_checkbox(self, label: impl MakeWidget) -> Checkbox
fn into_checkbox(self, label: impl MakeWidget) -> Checkbox
Returns a new checkbox using self
as the value and label
.
sourcefn to_checkbox(&self, label: impl MakeWidget) -> Checkboxwhere
Self: Clone,
fn to_checkbox(&self, label: impl MakeWidget) -> Checkboxwhere
Self: Clone,
Returns a new checkbox using self
as the value and label
.
Object Safety§
This trait is not object safe.