Skip to main content

ContextCalendarExt

Trait ContextCalendarExt 

Source
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§

Source

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>.

Source

fn get_start_date(&self) -> Option<Date>

Source

fn set_week_system(&mut self, weeks: impl Into<Option<WeekSystem>>)

Takes a WeekSystem or a root’s WEEK_SYSTEM.

Source

fn get_week_system(&self) -> Option<WeekSystem>

Source

fn get_current_date(&self) -> Option<Date>

The date of the current time, if there is a start date.

Source

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".

Implementors§