Struct tui_tree_widget::TreeState[][src]

pub struct TreeState { /* fields omitted */ }

Implementations

impl TreeState[src]

pub fn selected(&self) -> Vec<usize>[src]

pub fn select<I>(&mut self, identifier: I) where
    I: Into<Vec<usize>>, 
[src]

pub fn open(&mut self, identifier: TreeIdentifierVec) -> bool[src]

Open a tree node. Returns true if the node was closed and has been opened. Returns false if the node was already open.

pub fn close(&mut self, identifier: TreeIdentifier<'_>) -> bool[src]

Close a tree node. Returns true if the node was open and has been closed. Returns false if the node was already closed.

pub fn close_all(&mut self)[src]

pub fn get_all_opened(&self) -> Vec<TreeIdentifierVec>[src]

pub fn get_offset(&self) -> usize[src]

Trait Implementations

impl Clone for TreeState[src]

impl Debug for TreeState[src]

impl Default for TreeState[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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 = Infallible

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.