pub trait TableFieldView<const TILE_COUNT: usize>: TableView {
// Required methods
fn table_key_vals<'s>(
&'s self,
stats_field: StatsField<TILE_COUNT>,
) -> Box<dyn Iterator<Item = KeyVal<&'s str, u64>> + 's>;
fn resolution_unit(&self) -> String;
}Expand description
A full table, key and single value. dyn compatible. Combine with
TableView for table_name.
Required Methods§
Sourcefn table_key_vals<'s>(
&'s self,
stats_field: StatsField<TILE_COUNT>,
) -> Box<dyn Iterator<Item = KeyVal<&'s str, u64>> + 's>
fn table_key_vals<'s>( &'s self, stats_field: StatsField<TILE_COUNT>, ) -> Box<dyn Iterator<Item = KeyVal<&'s str, u64>> + 's>
Access to the list of (key / selected value)
Sourcefn resolution_unit(&self) -> String
fn resolution_unit(&self) -> String
Return the physical unit name for one step of the u64 values