pub struct SimpleTree {
pub nodes: Vec<SimpleTreeNode>,
}Fields§
§nodes: Vec<SimpleTreeNode>Implementations§
Trait Implementations§
Source§impl Clone for SimpleTree
impl Clone for SimpleTree
Source§fn clone(&self) -> SimpleTree
fn clone(&self) -> SimpleTree
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 SimpleTree
impl Debug for SimpleTree
Source§impl Default for SimpleTree
impl Default for SimpleTree
Source§fn default() -> SimpleTree
fn default() -> SimpleTree
Returns the “default value” for a type. Read more
impl Eq for SimpleTree
Source§impl PartialEq for SimpleTree
impl PartialEq for SimpleTree
impl StructuralPartialEq for SimpleTree
Source§impl TraversalTree for SimpleTree
impl TraversalTree for SimpleTree
fn parent(&self, idx: usize) -> Option<usize>
fn first_child(&self, idx: usize) -> Option<usize>
fn last_child(&self, idx: usize) -> Option<usize>
fn next_sibling(&self, idx: usize) -> Option<usize>
fn previous_sibling(&self, idx: usize) -> Option<usize>
fn node_type(&self, idx: usize) -> u16
Auto Trait Implementations§
impl Freeze for SimpleTree
impl RefUnwindSafe for SimpleTree
impl Send for SimpleTree
impl Sync for SimpleTree
impl Unpin for SimpleTree
impl UnsafeUnpin for SimpleTree
impl UnwindSafe for SimpleTree
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.