pub struct Chain { /* private fields */ }Expand description
The residual chain: every step of how you got there.
When a pipeline propagates through ?, each layer records what it
computed. If a boundary is reached, the chain shows the full path —
not just where you stopped, but every step on the way.
Implementations§
Source§impl Chain
impl Chain
pub fn new() -> Self
Sourcepub fn record(&mut self, label: &'static str, value: &dyn Debug)
pub fn record(&mut self, label: &'static str, value: &dyn Debug)
Record a successful interior step.
Sourcepub fn record_boundary(&mut self, label: &'static str, value: &dyn Debug)
pub fn record_boundary(&mut self, label: &'static str, value: &dyn Debug)
Record the residual at the boundary — the last step before propagation.
Sourcepub fn entries(&self) -> &[ChainEntry]
pub fn entries(&self) -> &[ChainEntry]
The entries in order, from first layer to the boundary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
impl UnwindSafe for Chain
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