Struct timelog::day::DailyChart
source · [−]pub struct DailyChart<'a>(_);Expand description
Representation of chart report about a Day.
Implementations
sourceimpl<'a> DailyChart<'a>
impl<'a> DailyChart<'a>
sourcepub fn project_percentages(&self) -> Percentages
pub fn project_percentages(&self) -> Percentages
Return a Vec of tuples mapping project name to percentage of the overall
time this project took.
sourcepub fn task_percentages(&self, proj: &str) -> Percentages
pub fn task_percentages(&self, proj: &str) -> Percentages
Return a Vec of tuples mapping the task name and percentage of the
supplied project.
sourcepub fn project_pie<W: Write>(&self, w: &mut EventWriter<W>) -> Result<()>
pub fn project_pie<W: Write>(&self, w: &mut EventWriter<W>) -> Result<()>
Write a pie chart representing the projects for the current day to the supplied
EventWriter.
sourcepub fn project_hours<W: Write>(&self, w: &mut EventWriter<W>) -> Result<()>
pub fn project_hours<W: Write>(&self, w: &mut EventWriter<W>) -> Result<()>
Write a bar-graph representation of the tasks by hour in the current day to the supplied
EventWriter.
sourcepub fn task_pie<W: Write>(
&self,
w: &mut EventWriter<W>,
proj: &str,
percent: &Percent
) -> Result<()>
pub fn task_pie<W: Write>(
&self,
w: &mut EventWriter<W>,
proj: &str,
percent: &Percent
) -> Result<()>
Write a pie chart representing the tasks for the supplied project to the supplied
EventWriter.
sourcepub fn write<W: Write>(&self, w: &mut EventWriter<W>) -> Result<()>
pub fn write<W: Write>(&self, w: &mut EventWriter<W>) -> Result<()>
Write the charts for the current day to the supplied EventWriter.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DailyChart<'a>
impl<'a> Send for DailyChart<'a>
impl<'a> Sync for DailyChart<'a>
impl<'a> Unpin for DailyChart<'a>
impl<'a> UnwindSafe for DailyChart<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more