pub struct OutlineTree {
pub items: Vec<OutlineItem>,
}Expand description
Outline tree structure
Fields§
§items: Vec<OutlineItem>Root items
Implementations§
Source§impl OutlineTree
impl OutlineTree
Sourcepub fn add_item(&mut self, item: OutlineItem)
pub fn add_item(&mut self, item: OutlineItem)
Add root item
Sourcepub fn total_count(&self) -> i64
pub fn total_count(&self) -> i64
Get total item count
Sourcepub fn visible_count(&self) -> i64
pub fn visible_count(&self) -> i64
Get visible item count
Trait Implementations§
Source§impl Clone for OutlineTree
impl Clone for OutlineTree
Source§fn clone(&self) -> OutlineTree
fn clone(&self) -> OutlineTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutlineTree
impl Debug for OutlineTree
Source§impl Default for OutlineTree
impl Default for OutlineTree
Source§impl PartialEq for OutlineTree
impl PartialEq for OutlineTree
impl StructuralPartialEq for OutlineTree
Auto Trait Implementations§
impl Freeze for OutlineTree
impl RefUnwindSafe for OutlineTree
impl Send for OutlineTree
impl Sync for OutlineTree
impl Unpin for OutlineTree
impl UnsafeUnpin for OutlineTree
impl UnwindSafe for OutlineTree
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