Struct tree_cursor::cursor::TreeCursor
[−]
[src]
pub struct TreeCursor<'n, N: 'n> { /* fields omitted */ }
Methods
impl<'n, N: 'n + Down> TreeCursor<'n, N>
[src]
pub fn new(root: &'n N) -> Self
[src]
pub fn down_map<F>(&mut self, f: F) -> bool where
F: Fn(&N, usize) -> Option<&N>,
[src]
F: Fn(&N, usize) -> Option<&N>,
pub fn down_map_new<F>(&mut self, f: F) -> Option<Self> where
F: Fn(&N, usize) -> Option<&N>,
[src]
F: Fn(&N, usize) -> Option<&N>,
Trait Implementations
impl<'n, N: Clone + 'n> Clone for TreeCursor<'n, N>
[src]
fn clone(&self) -> TreeCursor<'n, N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'n, N: Debug + 'n> Debug for TreeCursor<'n, N>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'n, N: Eq + 'n> Eq for TreeCursor<'n, N>
[src]
impl<'n, N: Hash + 'n> Hash for TreeCursor<'n, N>
[src]
fn hash<__HN: Hasher>(&self, __arg_0: &mut __HN)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'n, N: PartialEq + 'n> PartialEq for TreeCursor<'n, N>
[src]
fn eq(&self, __arg_0: &TreeCursor<'n, N>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TreeCursor<'n, N>) -> bool
[src]
This method tests for !=
.