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: u32
month: u32
month_arabic: String
month_english: String
year: 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
Auto Trait Implementations
impl RefUnwindSafe for HijriDate
impl Send for HijriDate
impl Sync for HijriDate
impl Unpin for HijriDate
impl UnwindSafe for HijriDate
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,