pub struct PrePostMut<'a, T, R, F, S> { /* private fields */ }
Expand description
Implements both traversals at once.
Implementations§
Source§impl<'a, T, R, F> PrePostMut<'a, T, R, F, Synchronous>
impl<'a, T, R, F> PrePostMut<'a, 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<'a, T, R, F, S> Freeze for PrePostMut<'a, T, R, F, S>where
F: Freeze,
impl<'a, T, R, F, S> RefUnwindSafe for PrePostMut<'a, T, R, F, S>
impl<'a, T, R, F, S> Send for PrePostMut<'a, T, R, F, S>
impl<'a, T, R, F, S> Sync for PrePostMut<'a, T, R, F, S>
impl<'a, T, R, F, S> Unpin for PrePostMut<'a, T, R, F, S>
impl<'a, T, R, F, S> !UnwindSafe for PrePostMut<'a, 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