Trait CheckHandler

Source
pub trait CheckHandler: 'static {
    // Required method
    fn item_checked(&mut self, item: &CheckItem, checked: bool);
}
Expand description

Trait for things that can respond to check state changes

Required Methods§

Source

fn item_checked(&mut self, item: &CheckItem, checked: bool)

Called when the user checks or unchecks an item

Implementors§

Source§

impl<F> CheckHandler for F
where F: FnMut(&CheckItem, bool) + 'static,