pub struct TreeSnapshot { /* private fields */ }Expand description
The flattened navigation order. Row delegates are materialized separately by the viewport.
Implementations§
Source§impl TreeSnapshot
impl TreeSnapshot
pub fn rows(&self) -> &[TreeItem]
pub fn visible_index(&self, key: i64) -> Option<usize>
pub fn visible_index_for_source(&self, source: usize) -> Option<usize>
pub fn root_key(&self) -> i64
pub fn is_filtering(&self) -> bool
pub fn is_expanded(&self, key: i64) -> bool
pub fn depth(&self, key: i64) -> Option<usize>
pub fn nearest_visible_ancestor(&self, key: i64) -> Option<i64>
pub fn is_descendant(&self, key: i64, ancestor: i64) -> bool
Trait Implementations§
Source§impl Debug for TreeSnapshot
impl Debug for TreeSnapshot
impl Eq for TreeSnapshot
Source§impl PartialEq for TreeSnapshot
impl PartialEq for TreeSnapshot
impl StructuralPartialEq for TreeSnapshot
Auto Trait Implementations§
impl Forget for TreeSnapshot
impl Freeze for TreeSnapshot
impl Move for TreeSnapshot
impl RefUnwindSafe for TreeSnapshot
impl Send for TreeSnapshot
impl Sync for TreeSnapshot
impl Unpin for TreeSnapshot
impl UnsafeUnpin for TreeSnapshot
impl UnwindSafe for TreeSnapshot
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