pub fn defaults(&mut self, val: &[bool]) -> &mut MultiSelect<'a> {
        self.defaults = val
            .to_vec()
            .iter()
            .cloned()
            .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 MultiSelect<'a> {
        self.defaults = val
            .to_vec()
            .iter()
            .cloned()
            .chain(repeat(false))
            .take(self.items.len())
            .collect();
        self
    }
pub fn defaults ( & mut self , val : & [ bool ] ) -> & mut MultiSelect < ' a > { self . defaults = val . to_vec ( ) . iter ( ) . cloned ( ) . 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]
&mut self
val
&[bool]