ratatui::widgets::calendar

Trait DateStyler

Source
pub trait DateStyler {
    // Required method
    fn get_style(&self, date: Date) -> Style;
}
Expand description

Provides a method for styling a given date. Monthly is generic on this trait, so any type that implements this trait can be used.

Required Methods§

Source

fn get_style(&self, date: Date) -> Style

Given a date, return a style for that date

Implementors§