Struct miniscript::iter::PreOrderIterItem
source · pub struct PreOrderIterItem<T> {
pub node: T,
pub parent: Option<T>,
pub index: usize,
pub n_children_yielded: usize,
pub is_complete: bool,
}
Expand description
A set of data yielded by a VerbosePreOrderIter
.
Fields§
§node: T
The actual element being yielded.
parent: Option<T>
The parent of this node. None
for the initial node, but will be
populated for all other nodes.
index: usize
The index when the element was first yielded.
n_children_yielded: usize
How many of this item’s children have been yielded.
This can also be interpreted as a count of how many times this item has been yielded before.
is_complete: bool
Whether this item is done (will not be yielded again).
Trait Implementations§
source§impl<T: Clone> Clone for PreOrderIterItem<T>
impl<T: Clone> Clone for PreOrderIterItem<T>
source§fn clone(&self) -> PreOrderIterItem<T>
fn clone(&self) -> PreOrderIterItem<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for PreOrderIterItem<T>where
T: RefUnwindSafe,
impl<T> Send for PreOrderIterItem<T>where
T: Send,
impl<T> Sync for PreOrderIterItem<T>where
T: Sync,
impl<T> Unpin for PreOrderIterItem<T>where
T: Unpin,
impl<T> UnwindSafe for PreOrderIterItem<T>where
T: UnwindSafe,
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