[−][src]Struct oxymcts::NodeRef
Node reference.
Implementations
impl<'a, T> NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
pub fn id(&self) -> NodeId
[src]
Returns the ID of this node.
pub fn tree(&self) -> &'a Tree<T>
[src]
Returns the tree owning this node.
pub fn value(&self) -> &'a T
[src]
Returns the value of this node.
pub fn parent(&self) -> Option<NodeRef<'a, T>>
[src]
Returns the parent of this node.
pub fn prev_sibling(&self) -> Option<NodeRef<'a, T>>
[src]
Returns the previous sibling of this node.
pub fn next_sibling(&self) -> Option<NodeRef<'a, T>>
[src]
Returns the next sibling of this node.
pub fn first_child(&self) -> Option<NodeRef<'a, T>>
[src]
Returns the first child of this node.
pub fn last_child(&self) -> Option<NodeRef<'a, T>>
[src]
Returns the last child of this node.
pub fn has_siblings(&self) -> bool
[src]
Returns true if this node has siblings.
pub fn has_children(&self) -> bool
[src]
Returns true if this node has children.
impl<'a, T> NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
pub fn ancestors(&self) -> Ancestors<'a, T>ⓘ
[src]
Returns an iterator over ancestors.
pub fn prev_siblings(&self) -> PrevSiblings<'a, T>ⓘNotable traits for PrevSiblings<'a, T>
impl<'a, T> Iterator for PrevSiblings<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
[src]
Notable traits for PrevSiblings<'a, T>
impl<'a, T> Iterator for PrevSiblings<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
Returns an iterator over previous siblings.
pub fn next_siblings(&self) -> NextSiblings<'a, T>ⓘNotable traits for NextSiblings<'a, T>
impl<'a, T> Iterator for NextSiblings<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
[src]
Notable traits for NextSiblings<'a, T>
impl<'a, T> Iterator for NextSiblings<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
Returns an iterator over next siblings.
pub fn first_children(&self) -> FirstChildren<'a, T>ⓘNotable traits for FirstChildren<'a, T>
impl<'a, T> Iterator for FirstChildren<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
[src]
Notable traits for FirstChildren<'a, T>
impl<'a, T> Iterator for FirstChildren<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
Returns an iterator over first children.
pub fn last_children(&self) -> LastChildren<'a, T>ⓘNotable traits for LastChildren<'a, T>
impl<'a, T> Iterator for LastChildren<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
[src]
Notable traits for LastChildren<'a, T>
impl<'a, T> Iterator for LastChildren<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
Returns an iterator over last children.
pub fn children(&self) -> Children<'a, T>ⓘ
[src]
Returns an iterator over children.
pub fn traverse(&self) -> Traverse<'a, T>ⓘ
[src]
Returns an iterator which traverses the subtree starting at this node.
pub fn descendants(&self) -> Descendants<'a, T>ⓘNotable traits for Descendants<'a, T>
impl<'a, T> Iterator for Descendants<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
[src]
Notable traits for Descendants<'a, T>
impl<'a, T> Iterator for Descendants<'a, T> where
T: 'a, type Item = NodeRef<'a, T>;
Returns an iterator over this node and its descendants.
Trait Implementations
impl<'a, T> Clone for NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
impl<'a, T> Copy for NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
impl<'a, T> Debug for NodeRef<'a, T> where
T: 'a + Debug,
[src]
T: 'a + Debug,
impl<'a, T> Eq for NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
impl<'a, T> From<NodeMut<'a, T>> for NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
impl<'a, T> PartialEq<NodeRef<'a, T>> for NodeRef<'a, T> where
T: 'a,
[src]
T: 'a,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for NodeRef<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for NodeRef<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for NodeRef<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for NodeRef<'a, T>
impl<'a, T> UnwindSafe for NodeRef<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,