Struct rat_widget::calendar::Month
source · pub struct Month { /* private fields */ }Expand description
Renders a month.
Implementations§
source§impl Month
impl Month
pub fn new() -> Self
pub fn locale(self, loc: Locale) -> Self
sourcepub fn style(self, s: MonthStyle) -> Self
pub fn style(self, s: MonthStyle) -> Self
Set the composite style.
sourcepub fn day_style(self, s: Box<dyn Fn(NaiveDate) -> Style>) -> Self
pub fn day_style(self, s: Box<dyn Fn(NaiveDate) -> Style>) -> Self
Sets a closure that is called to calculate the day style.
sourcepub fn week_style(self, s: impl Into<Style>) -> Self
pub fn week_style(self, s: impl Into<Style>) -> Self
Set the week number style
sourcepub fn title_style(self, s: impl Into<Style>) -> Self
pub fn title_style(self, s: impl Into<Style>) -> Self
Set the month-name style.
Trait Implementations§
source§impl StatefulWidget for Month
impl StatefulWidget for Month
source§impl StatefulWidgetRef for Month
impl StatefulWidgetRef for Month
§type State = MonthState
type State = MonthState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl Freeze for Month
impl !RefUnwindSafe for Month
impl !Send for Month
impl !Sync for Month
impl Unpin for Month
impl !UnwindSafe for Month
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more