[][src]Struct azul_core::callbacks::ParentNodesIterator

pub struct ParentNodesIterator<'a> { /* fields omitted */ }

Iterator that, starting from a certain starting point, returns the parent node until it gets to the root node.

Implementations

impl<'a> ParentNodesIterator<'a>[src]

pub fn current_node(&self) -> (DomId, NodeId)[src]

Returns what node ID the iterator is currently processing

pub fn current_index_in_parent(&self) -> Option<usize>[src]

Returns the offset into the parent of the current node or None if the item has no parent

Trait Implementations

impl<'a> Iterator for ParentNodesIterator<'a>[src]

type Item = (DomId, NodeId)

The type of the elements being iterated over.

fn next(&mut self) -> Option<(DomId, NodeId)>[src]

For each item in the current item path, returns the index of the item in the parent

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ParentNodesIterator<'a>

impl<'a> !Send for ParentNodesIterator<'a>

impl<'a> !Sync for ParentNodesIterator<'a>

impl<'a> Unpin for ParentNodesIterator<'a>

impl<'a> !UnwindSafe for ParentNodesIterator<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.