Trait TableFieldView

Source
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§

Source

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)

Source

fn resolution_unit(&self) -> String

Return the physical unit name for one step of the u64 values

Implementors§

Source§

impl<'key, K: TableKind, ViewType: Debug + ToStatsString + From<u64> + ResolutionUnit> TableFieldView<TILE_COUNT> for Table<'key, K, StatsOrCountOrSubStats<ViewType, TILE_COUNT>>