pub struct AllStatsVisitor {
pub total_sets: u32,
pub total_reps: u32,
pub total_volume_kg: f64,
/* private fields */
}Expand description
Single-pass visitor that collects all stats.
Fields§
§total_sets: u32§total_reps: u32§total_volume_kg: f64Implementations§
Source§impl AllStatsVisitor
impl AllStatsVisitor
pub fn new() -> Self
pub fn into_tree_stats(self) -> TreeStats
Trait Implementations§
Source§impl Visit for AllStatsVisitor
impl Visit for AllStatsVisitor
fn visit_leaf( &mut self, measures: &[Measure], _intensity: Option<&Intensity>, ancestors: &[&Node], )
Source§fn visit_tree(&mut self, root: &Node)
fn visit_tree(&mut self, root: &Node)
Convenience entry point. Calls visit_node with empty ancestors.
fn visit_node(&mut self, node: &Node, ancestors: &[&Node])
fn visit_exercise( &mut self, _name: Option<&str>, _measures: &[Measure], _intensity: Option<&Intensity>, _ancestors: &[&Node], )
fn visit_block(&mut self, _mode: &ExecutionMode, _ancestors: &[&Node])
Auto Trait Implementations§
impl Freeze for AllStatsVisitor
impl RefUnwindSafe for AllStatsVisitor
impl Send for AllStatsVisitor
impl Sync for AllStatsVisitor
impl Unpin for AllStatsVisitor
impl UnsafeUnpin for AllStatsVisitor
impl UnwindSafe for AllStatsVisitor
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