Trait MultiSelectStorage

Source
pub trait MultiSelectStorage {
    // Required methods
    fn size(&self) -> Option<usize>;
    fn apply_requests(&mut self, ms: &mut MultiSelect);
}
Expand description

How the multi-select data will be stored.

There is a blank implementation for mutable references to a type that implements this trait, so that you can use a storage without consuming it. Or you can pass a temporary adaptor without getting a reference.

Required Methods§

Source

fn size(&self) -> Option<usize>

Source

fn apply_requests(&mut self, ms: &mut MultiSelect)

Implementations on Foreign Types§

Source§

impl<T: MultiSelectStorage> MultiSelectStorage for &mut T

Use the storage without consuming it.

Source§

fn size(&self) -> Option<usize>

Source§

fn apply_requests(&mut self, ms: &mut MultiSelect)

Implementors§