pub struct TreeStyle {
pub selected_style: Style,
pub normal_style: Style,
pub connector_style: Style,
pub icon_style: Style,
pub collapsed_icon: &'static str,
pub expanded_icon: &'static str,
pub connector_branch: &'static str,
pub connector_last: &'static str,
pub connector_vertical: &'static str,
pub connector_space: &'static str,
pub cursor_selected: &'static str,
pub cursor_normal: &'static str,
}Expand description
Style configuration for tree view
Fields§
§selected_style: StyleStyle for selected items
normal_style: StyleStyle for normal items
connector_style: StyleStyle for tree connectors
icon_style: StyleStyle for expand/collapse icons
collapsed_icon: &'static strCollapsed icon
expanded_icon: &'static strExpanded icon
connector_branch: &'static strTree connector: branch (has siblings after)
connector_last: &'static strTree connector: last (no siblings after)
connector_vertical: &'static strTree connector: vertical line
connector_space: &'static strTree connector: empty space
cursor_selected: &'static strSelection cursor for selected item
cursor_normal: &'static strSelection cursor for non-selected items
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeStyle
impl RefUnwindSafe for TreeStyle
impl Send for TreeStyle
impl Sync for TreeStyle
impl Unpin for TreeStyle
impl UnwindSafe for TreeStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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