pub trait Checkable: IntoDynamic<CheckboxState> + Sized {
// Provided methods
fn into_checkbox(self) -> Checkbox { ... }
fn to_checkbox(&self) -> Checkbox
where Self: Clone { ... }
}
Expand description
A value that can be used as a checkbox.
Provided Methods§
Sourcefn into_checkbox(self) -> Checkbox
fn into_checkbox(self) -> Checkbox
Returns a new checkbox using self
as the value.
Sourcefn to_checkbox(&self) -> Checkboxwhere
Self: Clone,
fn to_checkbox(&self) -> Checkboxwhere
Self: Clone,
Returns a new checkbox using self
as the value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.