pub struct Observations { /* private fields */ }Expand description
Per-AST-node reachability accumulated across a run of probed evaluations
(ADR-0042). One of these belongs to one Expr.
Lives only in the harness path: Expr::eval neither reads nor writes it,
and no type a frame touches gained a field for it.
Implementations§
Source§impl Observations
impl Observations
Sourcepub fn node(&self, index: usize) -> NodeObservation
pub fn node(&self, index: usize) -> NodeObservation
What was observed at index; NodeObservation::Untouched for a node
this run never reached.
Sourcepub fn nodes(&self) -> &[NodeObservation]
pub fn nodes(&self) -> &[NodeObservation]
Every recorded slot, in node order.
Trait Implementations§
Source§impl Clone for Observations
impl Clone for Observations
Source§fn clone(&self) -> Observations
fn clone(&self) -> Observations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Observations
impl Debug for Observations
Source§impl Default for Observations
impl Default for Observations
Source§fn default() -> Observations
fn default() -> Observations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Observations
impl RefUnwindSafe for Observations
impl Send for Observations
impl Sync for Observations
impl Unpin for Observations
impl UnsafeUnpin for Observations
impl UnwindSafe for Observations
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