pub trait Iterable {
// Required methods
fn field_count(&self) -> usize;
fn field_ref(&self, n: usize) -> Option<(&'static str, &dyn Metric)>;
}
Expand description
Trait for iterating over the fields of a struct.
Required Methods§
Sourcefn field_count(&self) -> usize
fn field_count(&self) -> usize
Returns the number of fields in the struct.