pub trait ContextCalendarExt: ContextBase {
// Provided methods
fn set_start_date(&mut self, start: impl Into<Option<Date>>) { ... }
fn get_start_date(&self) -> Option<Date> { ... }
fn set_week_system(&mut self, weeks: impl Into<Option<WeekSystem>>) { ... }
fn get_week_system(&self) -> Option<WeekSystem> { ... }
fn get_current_date(&self) -> Option<Date> { ... }
fn get_current_week(&self) -> Option<Week> { ... }
}Expand description
The date of day 0 and the week system on a Context, for writing
dates and weeks in reports.
Provided Methods§
Sourcefn set_start_date(&mut self, start: impl Into<Option<Date>>)
fn set_start_date(&mut self, start: impl Into<Option<Date>>)
Sets the date of day 0; takes a Date or a parameters’ Option<Date>.
fn get_start_date(&self) -> Option<Date>
Sourcefn set_week_system(&mut self, weeks: impl Into<Option<WeekSystem>>)
fn set_week_system(&mut self, weeks: impl Into<Option<WeekSystem>>)
Takes a WeekSystem or a root’s WEEK_SYSTEM.
fn get_week_system(&self) -> Option<WeekSystem>
Sourcefn get_current_date(&self) -> Option<Date>
fn get_current_date(&self) -> Option<Date>
The date of the current time, if there is a start date.
Sourcefn get_current_week(&self) -> Option<Week>
fn get_current_week(&self) -> Option<Week>
The week of the current time, if there is a start date and a week system.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".