pub struct TreeItem<'a> {
pub kind: TreeItemKind,
pub label: &'a str,
pub active: bool,
pub collapsed: bool,
pub children_html: Option<TrustedHtml<'a>>,
}Fields§
§kind: TreeItemKind§label: &'a str§active: bool§collapsed: bool§children_html: Option<TrustedHtml<'a>>Implementations§
Source§impl<'a> TreeItem<'a>
impl<'a> TreeItem<'a>
pub const fn folder(label: &'a str) -> Self
pub const fn file(label: &'a str) -> Self
pub const fn active(self) -> Self
pub const fn collapsed(self) -> Self
pub const fn with_children(self, children_html: TrustedHtml<'a>) -> Self
pub fn item_class(&self) -> &'static str
pub fn label_class(&self) -> &'static str
Trait Implementations§
Source§impl<'a> PartialEq for TreeItem<'a>
impl<'a> PartialEq for TreeItem<'a>
impl<'a> Copy for TreeItem<'a>
impl<'a> Eq for TreeItem<'a>
impl<'a> StructuralPartialEq for TreeItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for TreeItem<'a>
impl<'a> RefUnwindSafe for TreeItem<'a>
impl<'a> Send for TreeItem<'a>
impl<'a> Sync for TreeItem<'a>
impl<'a> Unpin for TreeItem<'a>
impl<'a> UnsafeUnpin for TreeItem<'a>
impl<'a> UnwindSafe for TreeItem<'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