Struct islam::hijri::HijriDate[][src]

pub struct HijriDate {
    pub day: u32,
    pub month: u32,
    pub month_arabic: String,
    pub month_english: String,
    pub year: i32,
}

Fields

day: u32month: u32month_arabic: Stringmonth_english: Stringyear: i32

Implementations

impl HijriDate[src]

pub fn new(year: i32, month: u32, day: u32) -> Result<Self, HijriError>[src]

pub fn to_julian(&self) -> i32[src]

pub fn to_gregorian(&self) -> Date<Utc>[src]

pub fn next_date(self) -> Self[src]

pub fn today(correction_val: i32) -> Self[src]

pub fn from_julian(julian_date: i32, correction_val: i32) -> Self[src]

pub fn from_gregorian(date: Date<Utc>, correction_val: i32) -> Self[src]

Trait Implementations

impl Clone for HijriDate[src]

impl Debug for HijriDate[src]

Auto Trait Implementations

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.