pub struct Mind { /* private fields */ }
Expand description
The productive mind.
Implementations§
Source§impl Mind
impl Mind
pub fn from(tasks: Vec<Task>, reminders: Vec<Reminder>) -> Self
Sourcepub fn remind_tasks(&mut self)
pub fn remind_tasks(&mut self)
Go through the reminders and taks proper action.
Sourcepub fn productivity(&self) -> Productivity
pub fn productivity(&self) -> Productivity
Productivity from backlog
Sourcepub fn task_to_reminder(&mut self, index: usize) -> Result<()>
pub fn task_to_reminder(&mut self, index: usize) -> Result<()>
Turn the specified task into a reminder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mind
impl RefUnwindSafe for Mind
impl Send for Mind
impl Sync for Mind
impl Unpin for Mind
impl UnwindSafe for Mind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more