pub enum TreePosition {
Root,
Child {
index: usize,
len: usize,
depth: usize,
},
}Expand description
A visible value’s position in a Tree.
The optional root has no sibling group. Child positions are assigned after offsets and hidden nodes are removed, and top-level children have depth zero.
Variants§
Trait Implementations§
Source§impl Clone for TreePosition
impl Clone for TreePosition
Source§fn clone(&self) -> TreePosition
fn clone(&self) -> TreePosition
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 TreePosition
impl Debug for TreePosition
Source§impl PartialEq for TreePosition
impl PartialEq for TreePosition
Source§fn eq(&self, other: &TreePosition) -> bool
fn eq(&self, other: &TreePosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TreePosition
impl Eq for TreePosition
impl StructuralPartialEq for TreePosition
Auto Trait Implementations§
impl Freeze for TreePosition
impl RefUnwindSafe for TreePosition
impl Send for TreePosition
impl Sync for TreePosition
impl Unpin for TreePosition
impl UnsafeUnpin for TreePosition
impl UnwindSafe for TreePosition
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