Skip to main content

DayFilter

Trait DayFilter 

Source
pub trait DayFilter {
    // Required methods
    fn start(&self) -> String;
    fn end(&self) -> String;
    fn filter_day(&self, day: Day) -> Option<Day>;
}
Expand description

Trait specifying common functionality for the different filter arguments.

Required Methods§

Source

fn start(&self) -> String

Return the start date as a String

Source

fn end(&self) -> String

Return the end date as a String

Source

fn filter_day(&self, day: Day) -> Option<Day>

Return a Day object after appropriate filtering

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§