#[repr(u8)]pub enum YearLengthType {
Chaserim = 0,
Kesidran = 1,
Shelaimim = 2,
}Expand description
Represents the length type of a Hebrew year based on Cheshvan and Kislev.
Chaserim: Both months are short (Cheshvan 29 days, Kislev 29 days)Kesidran: Normal length (Cheshvan 29 days, Kislev 30 days)Shelaimim: Both months are long (Cheshvan 30 days, Kislev 30 days)
Variants§
Chaserim = 0
Cheshvan and Kislev are both short (29 days).
Kesidran = 1
Cheshvan is short and Kislev is long (typical year).
Shelaimim = 2
Cheshvan and Kislev are both long (30 days).
Trait Implementations§
Source§impl Clone for YearLengthType
impl Clone for YearLengthType
Source§fn clone(&self) -> YearLengthType
fn clone(&self) -> YearLengthType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for YearLengthType
impl Debug for YearLengthType
Source§impl From<YearLengthType> for u8
impl From<YearLengthType> for u8
Source§fn from(enum_value: YearLengthType) -> Self
fn from(enum_value: YearLengthType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for YearLengthType
impl PartialEq for YearLengthType
Source§fn eq(&self, other: &YearLengthType) -> bool
fn eq(&self, other: &YearLengthType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for YearLengthType
impl TryFrom<u8> for YearLengthType
Source§type Error = TryFromPrimitiveError<YearLengthType>
type Error = TryFromPrimitiveError<YearLengthType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for YearLengthType
impl TryFromPrimitive for YearLengthType
const NAME: &'static str = "YearLengthType"
type Primitive = u8
type Error = TryFromPrimitiveError<YearLengthType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for YearLengthType
impl Eq for YearLengthType
impl StructuralPartialEq for YearLengthType
Auto Trait Implementations§
impl Freeze for YearLengthType
impl RefUnwindSafe for YearLengthType
impl Send for YearLengthType
impl Sync for YearLengthType
impl Unpin for YearLengthType
impl UnsafeUnpin for YearLengthType
impl UnwindSafe for YearLengthType
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<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
Source§fn convert_into(self) -> T
fn convert_into(self) -> T
Infallibly converts a value of type
Self to a value of type T.Source§impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
Source§type Error = Infallible
type Error = Infallible
The type of an error that can occur during a conversion. Read more
Source§fn convert_try_from(value: F) -> Result<T, Infallible>
fn convert_try_from(value: F) -> Result<T, Infallible>
Fallibly converts a value of type
F to a value of type Self.Source§impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
Source§type Error = <T as ConvertTryFrom<F>>::Error
type Error = <T as ConvertTryFrom<F>>::Error
The type of an error that can occur during a conversion. Read more
Source§fn convert_try_into(self) -> Result<T, <T as ConvertTryFrom<F>>::Error>
fn convert_try_into(self) -> Result<T, <T as ConvertTryFrom<F>>::Error>
Fallibly converts a value of type
Self to a value of type T.