pub struct BorderContext {
pub month_boundary_idx: Option<usize>,
pub first_bar_idx: Option<usize>,
}Fields§
§month_boundary_idx: Option<usize>§first_bar_idx: Option<usize>Implementations§
Source§impl BorderContext
impl BorderContext
pub fn from_layout( layout: &WeekLayout, current_month: Option<u32>, year: i32, ) -> Self
pub fn calculate_dashes_before(&self, boundary_idx: usize) -> usize
pub fn calculate_dashes_after( &self, boundary_idx: usize, days_in_week: usize, ) -> usize
Trait Implementations§
Source§impl Clone for BorderContext
impl Clone for BorderContext
Source§fn clone(&self) -> BorderContext
fn clone(&self) -> BorderContext
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 BorderContext
impl RefUnwindSafe for BorderContext
impl Send for BorderContext
impl Sync for BorderContext
impl Unpin for BorderContext
impl UnwindSafe for BorderContext
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