pub struct TreeRow {
pub row: RowKey,
pub parent: Option<RowKey>,
pub depth: u32,
pub expandable: bool,
pub expanded: bool,
}Expand description
A row of a Tree that shows, as backends get it: its place in the
tree, and whether it opens.
Fields§
§row: RowKey§parent: Option<RowKey>The row it’s in, None at the top. It comes before this row, which
it’s open to show.
depth: u320 at the top, one more than its parent’s.
expandable: boolIt opens, children or not (a folder, empty or not yet read): the platform shows its disclosure.
expanded: boolIt’s open: its children’s rows, if it has any, follow it.
Trait Implementations§
impl Copy for TreeRow
impl Eq for TreeRow
impl StructuralPartialEq for TreeRow
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