pub struct WeekRenderContext<'a> {
pub layout: &'a WeekLayout,
pub next_layout: Option<&'a WeekLayout>,
pub week_num: i32,
pub current_month: Option<u32>,
pub is_last_week: bool,
}Fields§
§layout: &'a WeekLayout§next_layout: Option<&'a WeekLayout>§week_num: i32§current_month: Option<u32>§is_last_week: boolImplementations§
Source§impl<'a> WeekRenderContext<'a>
impl<'a> WeekRenderContext<'a>
pub fn new( layout: &'a WeekLayout, next_layout: Option<&'a WeekLayout>, week_num: i32, current_month: Option<u32>, is_last_week: bool, ) -> Self
pub fn get_month_name(&self) -> &'static str
pub fn has_month_boundary_at(&self, idx: usize) -> bool
pub fn next_is_boundary_after(&self, idx: usize) -> bool
Trait Implementations§
Source§impl<'a> Clone for WeekRenderContext<'a>
impl<'a> Clone for WeekRenderContext<'a>
Source§fn clone(&self) -> WeekRenderContext<'a>
fn clone(&self) -> WeekRenderContext<'a>
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<'a> Freeze for WeekRenderContext<'a>
impl<'a> RefUnwindSafe for WeekRenderContext<'a>
impl<'a> Send for WeekRenderContext<'a>
impl<'a> Sync for WeekRenderContext<'a>
impl<'a> Unpin for WeekRenderContext<'a>
impl<'a> UnwindSafe for WeekRenderContext<'a>
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