pub struct TaskEvent { /* private fields */ }
Expand description
Structure representing a single task event.
Implementations§
Source§impl TaskEvent
impl TaskEvent
Sourcepub fn new<'a, OS>(start: DateTime, proj: OS, dur: Duration) -> Self
pub fn new<'a, OS>(start: DateTime, proj: OS, dur: Duration) -> Self
Create a TaskEvent
with the supplied parameters.
Sourcepub fn from_entry(entry: &Entry) -> Self
pub fn from_entry(entry: &Entry) -> Self
Create a TaskEvent
from the supplied entry
Sourcepub fn add_dur(&mut self, dur: Duration)
pub fn add_dur(&mut self, dur: Duration)
Extend the TaskEvent
’s duration by the supplied amount.
Sourcepub fn second_offset(&self) -> u32
pub fn second_offset(&self) -> u32
Return the number of seconds after the hour of the starting time.
Trait Implementations§
Source§impl Ord for TaskEvent
impl Ord for TaskEvent
Source§impl PartialOrd for TaskEvent
impl PartialOrd for TaskEvent
impl Eq for TaskEvent
impl StructuralPartialEq for TaskEvent
Auto Trait Implementations§
impl Freeze for TaskEvent
impl RefUnwindSafe for TaskEvent
impl Send for TaskEvent
impl Sync for TaskEvent
impl Unpin for TaskEvent
impl UnwindSafe for TaskEvent
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