Skip to main content

OnToggle

Type Alias OnToggle 

Source
pub type OnToggle = Rc<dyn Fn(usize, &mut Window, &mut App)>;
Expand description

Handed the block whose checkbox was clicked โ€” see Toggle::Handled.

Shared rather than borrowed: the press listener it is cloned into outlives the frame that built it.

Aliased Typeยง

pub struct OnToggle { /* private fields */ }