Series

Trait Series 

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

Source

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.

Source

fn option_to_string<'a, T>(key: impl Into<Option<T>>) -> String
where T: Display + 'a,

Converts an optional key to a string. If the key is None, the string “None” is returned.

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.

Implementations on Foreign Types§

Source§

impl Series for Bar

Source§

impl Series for Line

Source§

impl Series for Pie

Implementors§