Struct date_component::date_component::DateComponent[][src]

pub struct DateComponent {
    pub year: isize,
    pub month: isize,
    pub day: isize,
    pub interval_day: isize,
    pub invert: bool,
}

Fields

year: isize

Number of years.

month: isize

Number of months.

day: isize

Number of days.

interval_day: isize

total number of days between the start and end dates

invert: bool

Is true if the interval represents a negative time period and false otherwise

Trait Implementations

impl Clone for DateComponent[src]

impl Copy for DateComponent[src]

impl Debug for DateComponent[src]

impl Eq for DateComponent[src]

impl PartialEq<DateComponent> for DateComponent[src]

impl StructuralEq for DateComponent[src]

impl StructuralPartialEq for DateComponent[src]

Auto Trait Implementations

impl RefUnwindSafe for DateComponent[src]

impl Send for DateComponent[src]

impl Sync for DateComponent[src]

impl Unpin for DateComponent[src]

impl UnwindSafe for DateComponent[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.