[][src]Struct mind::mind::Mind

pub struct Mind { /* fields omitted */ }

The productive mind.

Implementations

impl Mind[src]

pub fn from(tasks: Vec<Task>, reminders: Vec<Reminder>) -> Self[src]

pub fn version() -> &'static str[src]

Get the version. See ~/.mind/version

pub fn tasks(&self) -> &Vec<Task>[src]

Get the pending tasks. See ~/.mind/tasks.yml

pub fn reminders(&self) -> &Vec<Reminder>[src]

Get the reminders. See ~/.mind/reminders.yml

pub fn remind_tasks(&mut self)[src]

Go through the reminders and taks proper action.

pub fn act(&mut self, command: Command)[src]

Act based on the given command.

Trait Implementations

impl Default for Mind[src]

impl Display for Mind[src]

Auto Trait Implementations

impl RefUnwindSafe for Mind

impl Send for Mind

impl Sync for Mind

impl Unpin for Mind

impl UnwindSafe for Mind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.