[−][src]Struct comp_state::list::ListControl
Methods
impl<T> ListControl<T> where
T: Clone + 'static,
[src]
T: Clone + 'static,
pub fn get_list(&self) -> List<T>
[src]
pub fn clear(&self)
[src]
pub fn move_item_to_position(&self, old_idx: usize, new_idx: usize)
[src]
pub fn move_item_up(&self, old_idx: usize)
[src]
pub fn move_item_down(&self, old_idx: usize)
[src]
pub fn insert(&self, idx: usize, item: T)
[src]
pub fn remove(&self, idx: usize) -> T
[src]
pub fn replace(&self, idx: usize, item: T) -> T
[src]
pub fn push(&self, item: T)
[src]
pub fn unselect_by_key(&self, key: ListKey)
[src]
pub fn unselect_all(&self)
[src]
pub fn select_all(&self)
[src]
pub fn unselect(&self, idx: usize)
[src]
pub fn select(&self, idx: usize)
[src]
pub fn toggle_select(&self, idx: usize)
[src]
pub fn select_only(&self, idx: usize)
[src]
pub fn select_only_by_key(&self, key: ListKey)
[src]
pub fn select_by_key(&self, key: ListKey)
[src]
Trait Implementations
impl<T: Clone> Clone for ListControl<T> where
T: Clone + 'static,
[src]
T: Clone + 'static,
fn clone(&self) -> ListControl<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ListControl<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ListControl<T> where
T: Send,
T: Send,
impl<T> Sync for ListControl<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ListControl<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ListControl<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,