Struct TreeViewRowProps
pub struct TreeViewRowProps {
pub icon: Option<Icon>,
pub tone: Option<TreeTone>,
pub secondary: Option<String>,
pub trailing: Option<String>,
pub progress: Option<String>,
pub checkbox: Option<bool>,
pub description: Option<String>,
}Expand description
What one row of a tree shows besides its label: a leading glyph, the tone its title reads in, trailing text and what assistive technology says of it.
Fields§
§icon: Option<Icon>A leading glyph: the kind of thing it is. Beside a checkbox it stands after the box, so a checked-off task still says what it is.
tone: Option<TreeTone>The tone its label reads in.
secondary: Option<String>Dim text after the label: what the row belongs to (a project, a folder).
trailing: Option<String>Trailing text: a count, a kind, a size.
progress: Option<String>How far the branch got while it is folded, just before the trailing text: a done
count among its children (“2/5”). Its node’s TreeViewNodeProps::progress says it
where the row gives none. Shown only when the branch is closed.
checkbox: Option<bool>A checkbox at the start of the row: a task’s done state, a selection. A press on it
asks the node’s TreeViewNodeProps::check instead of selecting the row.
description: Option<String>What assistive technology says of the row after its label (“Folder”, “View”).
Trait Implementations§
§impl Clone for TreeViewRowProps
impl Clone for TreeViewRowProps
§fn clone(&self) -> TreeViewRowProps
fn clone(&self) -> TreeViewRowProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Component for TreeViewRowProps
impl Component for TreeViewRowProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<TreeViewRowProps, Error>
fn from_source(source: &mut dyn Source) -> Result<TreeViewRowProps, Error>
source gives. Read more§impl Debug for TreeViewRowProps
impl Debug for TreeViewRowProps
§impl Default for TreeViewRowProps
impl Default for TreeViewRowProps
§fn default() -> TreeViewRowProps
fn default() -> TreeViewRowProps
§impl PartialEq for TreeViewRowProps
impl PartialEq for TreeViewRowProps
§fn eq(&self, other: &TreeViewRowProps) -> bool
fn eq(&self, other: &TreeViewRowProps) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TreeViewRowProps
Auto Trait Implementations§
impl Freeze for TreeViewRowProps
impl RefUnwindSafe for TreeViewRowProps
impl Send for TreeViewRowProps
impl Sync for TreeViewRowProps
impl Unpin for TreeViewRowProps
impl UnsafeUnpin for TreeViewRowProps
impl UnwindSafe for TreeViewRowProps
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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