pub struct TreeRow {
pub depth: u16,
pub label: String,
pub secondary: Option<String>,
pub expanded: Option<bool>,
pub style: Option<Style>,
}Expand description
One visible row of a tree.
Fields§
§depth: u16Indentation level (0 = root). Each level adds two columns.
label: StringPrimary label shown after the fold glyph.
secondary: Option<String>Optional dimmed text shown right-aligned (e.g. a hint or count).
expanded: Option<bool>None = leaf node; Some(true) = expanded branch; Some(false) =
collapsed branch. Controls the ▾ / ▸ glyph.
style: Option<Style>Optional label style override (e.g. accent for directories). Defaults to
Theme::body when None.
Implementations§
Auto Trait Implementations§
impl Freeze for TreeRow
impl RefUnwindSafe for TreeRow
impl Send for TreeRow
impl Sync for TreeRow
impl Unpin for TreeRow
impl UnsafeUnpin for TreeRow
impl UnwindSafe for TreeRow
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