pub struct RenderState {
pub week_num: i32,
pub current_month: Option<u32>,
pub is_first_month: bool,
pub current_date: NaiveDate,
}Fields§
§week_num: i32§current_month: Option<u32>§is_first_month: bool§current_date: NaiveDateImplementations§
Source§impl RenderState
impl RenderState
pub fn new(start_date: NaiveDate) -> Self
pub fn advance_week(&mut self, days: i64)
pub fn set_current_month(&mut self, month: u32)
Trait Implementations§
Source§impl Clone for RenderState
impl Clone for RenderState
Source§fn clone(&self) -> RenderState
fn clone(&self) -> RenderState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RenderState
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnwindSafe for RenderState
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