pub struct TreeWidget<'a, V: NodeValue> { /* private fields */ }Expand description
tui-rs widget implementation of a crate::TreeView
Implementations§
Source§impl<'a, V: NodeValue> TreeWidget<'a, V>
impl<'a, V: NodeValue> TreeWidget<'a, V>
Sourcepub fn new(tree: &'a Tree<V>) -> Self
pub fn new(tree: &'a Tree<V>) -> Self
Setup a new TreeWidget
Sourcepub fn highlight_style(self, s: Style) -> Self
pub fn highlight_style(self, s: Style) -> Self
Set highlighted entry style
Sourcepub fn highlight_symbol(self, s: &'a str) -> Self
pub fn highlight_symbol(self, s: &'a str) -> Self
Set symbol to prepend to highlighted entry
Sourcepub fn indent_size(self, sz: usize) -> Self
pub fn indent_size(self, sz: usize) -> Self
Size for indentation
Trait Implementations§
Source§impl<V: NodeValue> StatefulWidget for TreeWidget<'_, V>
impl<V: NodeValue> StatefulWidget for TreeWidget<'_, V>
Auto Trait Implementations§
impl<'a, V> Freeze for TreeWidget<'a, V>
impl<'a, V> RefUnwindSafe for TreeWidget<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for TreeWidget<'a, V>where
V: Sync,
impl<'a, V> Sync for TreeWidget<'a, V>where
V: Sync,
impl<'a, V> Unpin for TreeWidget<'a, V>
impl<'a, V> UnwindSafe for TreeWidget<'a, V>where
V: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more