pub struct RunStats {
pub nodes: usize,
pub classes: usize,
pub iterations: usize,
pub match_steps: u64,
pub wall_time_ms: f64,
pub saturated: bool,
pub goal_met: bool,
}Expand description
The (print-stats) reading: e-graph size now, and the last run’s counters.
Both renderings are hand-rolled. The text form is for a human reading a terminal; the JSON form is what the comparison harness parses, and it is small and fixed enough that a serialization dependency would buy nothing.
Fields§
§nodes: usize§classes: usize§iterations: usize§match_steps: u64§wall_time_ms: f64§saturated: bool§goal_met: boolImplementations§
Source§impl RunStats
impl RunStats
pub fn render_text(&self) -> String
pub fn render_json(&self) -> String
Trait Implementations§
impl Copy for RunStats
impl StructuralPartialEq for RunStats
Auto Trait Implementations§
impl Freeze for RunStats
impl RefUnwindSafe for RunStats
impl Send for RunStats
impl Sync for RunStats
impl Unpin for RunStats
impl UnsafeUnpin for RunStats
impl UnwindSafe for RunStats
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