pub(super) trait Series {
// Provided methods
fn create_data_point_mapping<'a, T>(
grouped_time_log: BTreeMap<impl Into<Option<&'a T>>, Vec<&'a TimeLog>>,
) -> Vec<(String, String)>
where T: Display + 'a { ... }
fn option_to_string<'a, T>(key: impl Into<Option<T>>) -> String
where T: Display + 'a { ... }
}Expand description
Trait for all charming series
Provided Methods§
Sourcefn create_data_point_mapping<'a, T>(
grouped_time_log: BTreeMap<impl Into<Option<&'a T>>, Vec<&'a TimeLog>>,
) -> Vec<(String, String)>where
T: Display + 'a,
fn create_data_point_mapping<'a, T>(
grouped_time_log: BTreeMap<impl Into<Option<&'a T>>, Vec<&'a TimeLog>>,
) -> Vec<(String, String)>where
T: Display + 'a,
Turns a grouped time log map into entries of total hours per key and the key itself.
Can then be converted to [DataPoint] for chart data.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.