pub struct BFSRefMutGuard<'a: 'b, 'b, N: TreeNodeMut> { /* private fields */ }Expand description
A guard for mutable node references in breadth-first traversal.
This guard ensures that when a mutable reference is dropped, the node’s children are correctly added to the traversal queue in breadth-first order.
The guard implements Deref and DerefMut to allow direct access to the underlying node.
Trait Implementations§
Source§impl<'a: 'b, 'b, N: Debug + TreeNodeMut> Debug for BFSRefMutGuard<'a, 'b, N>
impl<'a: 'b, 'b, N: Debug + TreeNodeMut> Debug for BFSRefMutGuard<'a, 'b, N>
Source§impl<N: TreeNodeMut> Deref for BFSRefMutGuard<'_, '_, N>
impl<N: TreeNodeMut> Deref for BFSRefMutGuard<'_, '_, N>
Source§impl<N: TreeNodeMut> DerefMut for BFSRefMutGuard<'_, '_, N>
impl<N: TreeNodeMut> DerefMut for BFSRefMutGuard<'_, '_, N>
Source§impl<N: TreeNodeMut> Drop for BFSRefMutGuard<'_, '_, N>
impl<N: TreeNodeMut> Drop for BFSRefMutGuard<'_, '_, N>
Auto Trait Implementations§
impl<'a, 'b, N> Freeze for BFSRefMutGuard<'a, 'b, N>
impl<'a, 'b, N> RefUnwindSafe for BFSRefMutGuard<'a, 'b, N>where
N: RefUnwindSafe,
impl<'a, 'b, N> Send for BFSRefMutGuard<'a, 'b, N>where
N: Send,
impl<'a, 'b, N> Sync for BFSRefMutGuard<'a, 'b, N>where
N: Sync,
impl<'a, 'b, N> Unpin for BFSRefMutGuard<'a, 'b, N>
impl<'a, 'b, N> !UnwindSafe for BFSRefMutGuard<'a, 'b, N>
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