#[non_exhaustive]pub struct ChineseFromFixedResult {
pub year: i32,
pub month: u8,
pub day: u8,
pub year_bounds: YearBounds,
pub leap_month: Option<NonZeroU8>,
}
Expand description
chinese_based_date_from_fixed returns extra things for use in caching
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.year: i32
The chinese year
month: u8
The chinese month
day: u8
The chinese day
year_bounds: YearBounds
The bounds of the current lunar year
leap_month: Option<NonZeroU8>
The index of the leap month, if any
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChineseFromFixedResult
impl RefUnwindSafe for ChineseFromFixedResult
impl Send for ChineseFromFixedResult
impl Sync for ChineseFromFixedResult
impl Unpin for ChineseFromFixedResult
impl UnwindSafe for ChineseFromFixedResult
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