Struct intdate::IntDate[][src]

pub struct IntDate(_);

Struct representing a valid intdate.

Implementations

impl IntDate[src]

pub fn raw(&self) -> u32[src]

Returns the integer this date was made from.

pub fn get_day(&self) -> u8[src]

Returns the day.

pub fn get_month(&self) -> u8[src]

Returns the month.

pub fn get_year(&self) -> u32[src]

Returns the year.

pub fn is_year_leap(&self) -> bool[src]

Returns if the year is leap or not.

Trait Implementations

impl Clone for IntDate[src]

impl Copy for IntDate[src]

impl Debug for IntDate[src]

impl Eq for IntDate[src]

impl FromStr for IntDate[src]

type Err = IntDateError

The associated error which can be returned from parsing.

impl Ord for IntDate[src]

impl PartialEq<IntDate> for IntDate[src]

impl PartialOrd<IntDate> for IntDate[src]

impl StructuralEq for IntDate[src]

impl StructuralPartialEq for IntDate[src]

impl TryFrom<i128> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<i16> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<i32> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<i64> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<i8> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<isize> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<u128> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<u16> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<u32> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<u64> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<u8> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

impl TryFrom<usize> for IntDate[src]

type Error = IntDateError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for IntDate

impl Send for IntDate

impl Sync for IntDate

impl Unpin for IntDate

impl UnwindSafe for IntDate

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.