Trait Checkbox

Source
pub trait Checkbox {
    // Required method
    fn build(ui: &Ui<'_>, elem: &mut Self, params: CheckboxParams<'_>) -> bool;
}
Expand description

Trait for types that can be represented with a checkbox.

Required Methods§

Source

fn build(ui: &Ui<'_>, elem: &mut Self, params: CheckboxParams<'_>) -> bool

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.

Implementations on Foreign Types§

Source§

impl Checkbox for bool

Source§

fn build(ui: &Ui<'_>, elem: &mut Self, params: CheckboxParams<'_>) -> bool

Source§

impl<C: Checkbox> Checkbox for Option<C>

Source§

fn build(ui: &Ui<'_>, elem: &mut Self, params: CheckboxParams<'_>) -> bool

Source§

impl<T: Checkbox> Checkbox for Box<T>

Source§

fn build(ui: &Ui<'_>, elem: &mut Self, params: CheckboxParams<'_>) -> bool

Implementors§