pub struct InPostMut<'a, T, S> { /* private fields */ }
Expand description
Represents the post-order
traversal.
Implementations§
Source§impl<'a, T, S> InPostMut<'a, T, S>
impl<'a, T, S> InPostMut<'a, T, S>
Sourcepub fn reduce<F, R>(self, f: F) -> R
pub fn reduce<F, R>(self, f: F) -> R
Traverses the tree rooted by self in post-order
, calling the given closure along the way and providing its results from children to parent.
Sourcepub fn map<F, R>(self, post: F) -> Node<R>
pub fn map<F, R>(self, post: F) -> Node<R>
Traverses the tree in post-order
, building a new tree by calling the given closure along the way.
Sourcepub fn with_pre<R, F>(self, pre: F) -> PrePostMut<'a, T, R, F, Synchronous>
pub fn with_pre<R, F>(self, pre: F) -> PrePostMut<'a, T, R, F, Synchronous>
Determines a closure to be executed in pre-order
when traversing the tree.
Auto Trait Implementations§
impl<'a, T, S> Freeze for InPostMut<'a, T, S>
impl<'a, T, S> RefUnwindSafe for InPostMut<'a, T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, S> Send for InPostMut<'a, T, S>
impl<'a, T, S> Sync for InPostMut<'a, T, S>
impl<'a, T, S> Unpin for InPostMut<'a, T, S>where
S: Unpin,
impl<'a, T, S> !UnwindSafe for InPostMut<'a, T, S>
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