Struct icu_calendar::ethiopic::Ethiopic
source · [−]pub struct Ethiopic;
Implementations
Trait Implementations
sourceimpl Calendar for Ethiopic
impl Calendar for Ethiopic
type DateInner = EthiopicDateInner
type DateInner = EthiopicDateInner
The internal type used to represent dates
sourcefn date_from_iso(&self, iso: Date<Iso>) -> EthiopicDateInner
fn date_from_iso(&self, iso: Date<Iso>) -> EthiopicDateInner
Construct the date from an ISO date
sourcefn date_to_iso(&self, date: &Self::DateInner) -> Date<Iso>
fn date_to_iso(&self, date: &Self::DateInner) -> Date<Iso>
Obtain an ISO date from this date
sourcefn months_in_year(&self, date: &Self::DateInner) -> u8
fn months_in_year(&self, date: &Self::DateInner) -> u8
Count the number of months in a given year, specified by providing a date from that year Read more
sourcefn days_in_year(&self, date: &Self::DateInner) -> u32
fn days_in_year(&self, date: &Self::DateInner) -> u32
Count the number of days in a given year, specified by providing a date from that year Read more
sourcefn days_in_month(&self, date: &Self::DateInner) -> u8
fn days_in_month(&self, date: &Self::DateInner) -> u8
Count the number of days in a given month, specified by providing a date from that year/month Read more
sourcefn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
Calculate the day of the week and return it
sourcefn offset_date(&self, date: &mut Self::DateInner, offset: DateDuration<Self>)
fn offset_date(&self, date: &mut Self::DateInner, offset: DateDuration<Self>)
Add offset
to date
sourcefn until(
&self,
date1: &Self::DateInner,
date2: &Self::DateInner,
_calendar2: &Self,
_largest_unit: DateDurationUnit,
_smallest_unit: DateDurationUnit
) -> DateDuration<Self>
fn until(
&self,
date1: &Self::DateInner,
date2: &Self::DateInner,
_calendar2: &Self,
_largest_unit: DateDurationUnit,
_smallest_unit: DateDurationUnit
) -> DateDuration<Self>
Calculate date2 - date
as a duration Read more
sourcefn month(&self, date: &Self::DateInner) -> Month
fn month(&self, date: &Self::DateInner) -> Month
The calendar-specific month represented by date
sourcefn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
The calendar-specific day-of-month represented by date
sourcefn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
Information of the day of the year
sourcefn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Obtain a name for the calendar for debug printing
sourceimpl CalendarArithmetic for Ethiopic
impl CalendarArithmetic for Ethiopic
fn month_days(year: i32, month: u8) -> u8
fn months_for_every_year() -> u8
fn is_leap_year(year: i32) -> bool
impl Copy for Ethiopic
impl Eq for Ethiopic
impl StructuralEq for Ethiopic
impl StructuralPartialEq for Ethiopic
Auto Trait Implementations
impl RefUnwindSafe for Ethiopic
impl Send for Ethiopic
impl Sync for Ethiopic
impl Unpin for Ethiopic
impl UnwindSafe for Ethiopic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more