Trait chrono_datepicker_core::viewed_date::ViewedDate[][src]

pub trait ViewedDate {
    fn previous_month(&self) -> NaiveDate;
fn next_month(&self) -> NaiveDate;
fn previous_year(&self) -> NaiveDate;
fn next_year(&self) -> NaiveDate;
fn previous_year_group(&self) -> NaiveDate;
fn next_year_group(&self) -> NaiveDate;
fn first_day_of_month(&self) -> NaiveDate;
fn contains(
        &self,
        dialog_view_type: &DialogViewType,
        date: &NaiveDate
    ) -> bool; }

Trait used for the variable that describes the currently viewed datepicker.

Required methods

fn previous_month(&self) -> NaiveDate[src]

returns a date with the first day of the previous month

fn next_month(&self) -> NaiveDate[src]

returns a date with the first day of the next month

fn previous_year(&self) -> NaiveDate[src]

returns a date with the first day of the previous year

fn next_year(&self) -> NaiveDate[src]

returns a date with the first day of the next year

fn previous_year_group(&self) -> NaiveDate[src]

returns a date with the first day of the last year of the previous year group

fn next_year_group(&self) -> NaiveDate[src]

returns a date with the first day of the first year of the next year group

fn first_day_of_month(&self) -> NaiveDate[src]

returns a date with the first day of the currently set month

fn contains(&self, dialog_view_type: &DialogViewType, date: &NaiveDate) -> bool[src]

returns true if the currently ViewedDate with the given DialogViewType includes the given date

Loading content...

Implementations on Foreign Types

impl ViewedDate for NaiveDate[src]

Loading content...

Implementors

Loading content...