pub struct MonthGrid {
pub year: i32,
pub month: u32,
pub days: u32,
pub first_weekday: u32,
pub grid: [[Option<u32>; 7]; 6],
}Expand description
A 6×7 grid representing a single Shahanshahi calendar month.
Rows are weeks, columns are weekdays starting from Saturday (column 0)
through Friday (column 6), following the Iranian week convention.
Each cell is None for empty positions or Some(day) for a valid day.
Fields§
§year: i32Shahanshahi year (e.g. 2584).
month: u32Persian month (1–12).
days: u32Total number of days in this month.
first_weekday: u32Weekday index of the 1st day (0=Saturday, 6=Friday).
grid: [[Option<u32>; 7]; 6]The grid: 6 rows × 7 columns. None = empty cell, Some(day) = day number.
Implementations§
Auto Trait Implementations§
impl Freeze for MonthGrid
impl RefUnwindSafe for MonthGrid
impl Send for MonthGrid
impl Sync for MonthGrid
impl Unpin for MonthGrid
impl UnwindSafe for MonthGrid
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