pub struct PrePostOwned<T, R, F, S> { /* private fields */ }Expand description
Implements both traversals at once.
Implementations§
Source§impl<T, R, F> PrePostOwned<T, R, F, Synchronous>
impl<T, R, F> PrePostOwned<T, R, F, Synchronous>
Sourcepub fn reduce<U, P>(self, base: R, post: P) -> U
pub fn reduce<U, P>(self, base: R, post: P) -> U
Traverses the tree calling both associated closures when corresponding. Returns the latest result given by the post closure, which value correspond to the root of the tree.
Auto Trait Implementations§
impl<T, R, F, S> Freeze for PrePostOwned<T, R, F, S>
impl<T, R, F, S> RefUnwindSafe for PrePostOwned<T, R, F, S>
impl<T, R, F, S> Send for PrePostOwned<T, R, F, S>
impl<T, R, F, S> Sync for PrePostOwned<T, R, F, S>
impl<T, R, F, S> Unpin for PrePostOwned<T, R, F, S>
impl<T, R, F, S> UnwindSafe for PrePostOwned<T, R, F, 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