pub struct ScopedCommentNode<'a> {
pub parent: Option<&'a ScopedCommentNode<'a>>,
pub track: TraceNode,
}Expand description
A stack-allocated scope node forming a parent-pointer cons list.
Each node lives on the call stack of the recursive graph save function.
Child nodes hold a &'a reference to their parent’s stack frame,
giving us thread-safe, lock-free, zero-overhead hierarchical comment tracking.
Fields§
§parent: Option<&'a ScopedCommentNode<'a>>Reference to the parent scope (lives on the caller’s stack frame)
track: TraceNodeImplementations§
Source§impl<'a> ScopedCommentNode<'a>
impl<'a> ScopedCommentNode<'a>
pub fn to_trace_chain(&self) -> Vec<TraceNode>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ScopedCommentNode<'a>
impl<'a> RefUnwindSafe for ScopedCommentNode<'a>
impl<'a> Send for ScopedCommentNode<'a>
impl<'a> Sync for ScopedCommentNode<'a>
impl<'a> Unpin for ScopedCommentNode<'a>
impl<'a> UnsafeUnpin for ScopedCommentNode<'a>
impl<'a> UnwindSafe for ScopedCommentNode<'a>
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