pub fn defaults(&mut self, val: &[bool]) -> &mut Checkboxes<'a> {
        self.defaults = val.to_vec()
            .iter()
            .map(|x| x.clone())
            .chain(repeat(false))
            .take(self.items.len())
            .collect();
        self
    }
/// Sets a defaults for the menu
Sets a defaults for the menu
Sets a defaults for the menu
pub fn defaults(&mut self, val: &[bool]) -> &mut Checkboxes<'a> {
        self.defaults = val.to_vec()
            .iter()
            .map(|x| x.clone())
            .chain(repeat(false))
            .take(self.items.len())
            .collect();
        self
    }
pub fn defaults ( & mut self , val : & [ bool ] ) -> & mut Checkboxes < ' a > { self . defaults = val . to_vec ( ) . iter ( ) . map ( | x | x . clone ( ) ) . chain ( repeat ( false ) ) . take ( self . items . len ( ) ) . collect ( ) ; self }
Sets a defaults for the menu
Sets a defaults for the menu
&mut self
val
&[bool]