[−][src]Enum punch_clock::Period
Represents a period of time relative to now.
Variants
The period of time that began at the start of the first tracked event.
The period of time that began at midnight at the start of the current day.
The period of time 24 hours in length that ended at midnight at the start of the current day.
The period of time that began at midnight at the start of the last Monday that occurred (including the current day).
The period of time 7 days (168 hours) in length that ended at midnight at the start of the last Monday that occurred.
The period of time that began at midnight at the start of the last day that occurred whose number was 1 (including the current day).
The period of time between the midnights at the beginning of the last two occurrences of days whose numbers were 1 (including the current day).
Trait Implementations
impl Clone for Period[src]
impl Debug for Period[src]
impl Display for Period[src]
impl Eq for Period[src]
impl FromStr for Period[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(raw: &str) -> Result<Self, Self::Err>[src]
impl PartialEq<Period> for Period[src]
impl StructuralEq for Period[src]
impl StructuralPartialEq for Period[src]
Auto Trait Implementations
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnwindSafe for Period
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,