pub struct TreeRow<'a> {
pub key: u64,
pub depth: u16,
pub has_children: bool,
pub check: Option<u8>,
pub icon: u32,
pub label: &'a str,
pub detail: Option<&'a str>,
}Expand description
one visible row of a tree (the app flattens its model through TreeState::expanded)
Fields§
§key: u64§depth: u16§has_children: bool§check: Option<u8>check box state 0 / 1 / 2 (indeterminate); None = no check box
icon: u32§label: &'a str§detail: Option<&'a str>secondary text after the label (size, date)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for TreeRow<'a>
impl<'a> Freeze for TreeRow<'a>
impl<'a> RefUnwindSafe for TreeRow<'a>
impl<'a> Send for TreeRow<'a>
impl<'a> Sync for TreeRow<'a>
impl<'a> Unpin for TreeRow<'a>
impl<'a> UnsafeUnpin for TreeRow<'a>
impl<'a> UnwindSafe for TreeRow<'a>
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