[][src]Struct comp_state::list::ListControl

pub struct ListControl<T> where
    T: Clone + 'static, 
{ /* fields omitted */ }

Methods

impl<T> ListControl<T> where
    T: Clone + 'static, 
[src]

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]

Auto Trait Implementations

impl<T> Send for ListControl<T> where
    T: Send

impl<T> Sync for ListControl<T> where
    T: Sync

impl<T> Unpin for ListControl<T> where
    T: Unpin

impl<T> UnwindSafe for ListControl<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for ListControl<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Any for T where
    T: Any
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]