pub struct Hebrew;Expand description
The Civil Hebrew Calendar
The Hebrew calendar is a lunisolar calendar used as the Jewish liturgical calendar as well as an official calendar in Israel.
This calendar is the civil Hebrew calendar, with the year starting at in the month of Tishrei.
§Era codes
This calendar supports a single era code, Anno Mundi, with code "am"
§Month codes
This calendar is a lunisolar calendar and thus has a leap month. It supports codes "M01"-"M12"
for regular months, and the leap month Adar I being coded as "M05L".
FormattableMonth has slightly divergent behavior: because the regular month Adar is formatted
as “Adar II” in a leap year, this calendar will produce the special code "M06L" in any FormattableMonth
objects it creates.
Implementations§
Trait Implementations§
Source§impl Calendar for Hebrew
impl Calendar for Hebrew
Source§type DateInner = HebrewDateInner
type DateInner = HebrewDateInner
Source§fn date_from_codes(
&self,
era: Era,
year: i32,
month_code: MonthCode,
day: u8,
) -> Result<Self::DateInner, CalendarError>
fn date_from_codes( &self, era: Era, year: i32, month_code: MonthCode, day: u8, ) -> Result<Self::DateInner, CalendarError>
Source§fn date_from_iso(&self, iso: Date<Iso>) -> Self::DateInner
fn date_from_iso(&self, iso: Date<Iso>) -> Self::DateInner
Source§fn months_in_year(&self, date: &Self::DateInner) -> u8
fn months_in_year(&self, date: &Self::DateInner) -> u8
Source§fn days_in_year(&self, date: &Self::DateInner) -> u16
fn days_in_year(&self, date: &Self::DateInner) -> u16
Source§fn days_in_month(&self, date: &Self::DateInner) -> u8
fn days_in_month(&self, date: &Self::DateInner) -> u8
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Source§fn year(&self, date: &Self::DateInner) -> FormattableYear
fn year(&self, date: &Self::DateInner) -> FormattableYear
dateSource§fn is_in_leap_year(&self, date: &Self::DateInner) -> bool
fn is_in_leap_year(&self, date: &Self::DateInner) -> bool
Source§fn month(&self, date: &Self::DateInner) -> FormattableMonth
fn month(&self, date: &Self::DateInner) -> FormattableMonth
dateSource§fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
dateSource§fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
Source§fn any_calendar_kind(&self) -> Option<AnyCalendarKind>
fn any_calendar_kind(&self) -> Option<AnyCalendarKind>
AnyCalendarKind corresponding to this calendar,
if one exists. Implementors outside of icu::calendar should return NoneSource§fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
Source§impl IntoAnyCalendar for Hebrew
impl IntoAnyCalendar for Hebrew
Source§fn to_any(self) -> AnyCalendar
fn to_any(self) -> AnyCalendar
AnyCalendar, moving it Read moreSource§fn to_any_cloned(&self) -> AnyCalendar
fn to_any_cloned(&self) -> AnyCalendar
AnyCalendar, cloning it Read moreSource§fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
AnyDateInner Read moreSource§impl Ord for Hebrew
impl Ord for Hebrew
Source§impl PartialOrd for Hebrew
impl PartialOrd for Hebrew
impl Eq for Hebrew
impl StructuralPartialEq for Hebrew
Auto Trait Implementations§
impl Freeze for Hebrew
impl RefUnwindSafe for Hebrew
impl Send for Hebrew
impl Sync for Hebrew
impl Unpin for Hebrew
impl UnwindSafe for Hebrew
Blanket Implementations§
Source§impl<C> AsCalendar for Cwhere
C: Calendar,
impl<C> AsCalendar for Cwhere
C: Calendar,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes