Struct tui_tree_widget::TreeState [−][src]
pub struct TreeState { /* fields omitted */ }
Implementations
impl TreeState
[src]
impl TreeState
[src]pub fn selected(&self) -> Vec<usize>
[src]
pub fn select<I>(&mut self, identifier: I) where
I: Into<Vec<usize>>,
[src]
I: Into<Vec<usize>>,
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
Auto Trait Implementations
impl RefUnwindSafe for TreeState
impl RefUnwindSafe for TreeState
impl UnwindSafe for TreeState
impl UnwindSafe for TreeState