pub enum Calendar {
Gregorian(GregorianCalendar),
Persian(PersianCalendar),
Chinese(ChineseCalendar),
Arabic(ArabicCalendar),
}Variants§
Gregorian(GregorianCalendar)
Persian(PersianCalendar)
Chinese(ChineseCalendar)
Arabic(ArabicCalendar)
Implementations§
Source§impl Calendar
impl Calendar
pub fn get_date(&self, day: i32) -> Date
pub fn get_date_view(&self, day: i32, lang: &Language) -> DateView
pub fn get_calendar_view(&self, lang: &Language) -> CalendarView
pub fn get_dates_view( &self, start_day: i32, end_day: i32, _lang: &Language, ) -> AppResult<Vec<DateView>>
pub fn into_direction(&self) -> String
Trait Implementations§
Source§impl From<&Calendar> for CalendarLanguagePair
impl From<&Calendar> for CalendarLanguagePair
impl StructuralPartialEq for Calendar
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnwindSafe for Calendar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more