Struct rat_widget::calender::RMonth
source · pub struct RMonth { /* private fields */ }Implementations§
source§impl RMonth
impl RMonth
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 RMonth
impl StatefulWidget for RMonth
source§impl StatefulWidgetRef for RMonth
impl StatefulWidgetRef for RMonth
§type State = RMonthState
type State = RMonthState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl Freeze for RMonth
impl !RefUnwindSafe for RMonth
impl !Send for RMonth
impl !Sync for RMonth
impl Unpin for RMonth
impl !UnwindSafe for RMonth
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