Trait ratatui::widgets::calendar::DateStyler

source ·
pub trait DateStyler {
    // Required method
    fn get_style(&self, date: Date) -> Style;
}
Available on crate feature widget-calendar only.
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§