pub struct PickerConfig<T: HasDateConstraints + Default + Clone> { /* private fields */ }
Expand description
Configuration for the datepicker.
Implementations§
Source§impl<T: HasDateConstraints + Default + Clone> PickerConfig<T>
impl<T: HasDateConstraints + Default + Clone> PickerConfig<T>
pub fn initial_date(&self) -> &Option<NaiveDate>
pub fn initial_view_type(&self) -> &DialogViewType
pub fn selection_type(&self) -> &DialogViewType
pub fn initially_opened(&self) -> &bool
pub fn month_title_format(&self) -> &String
Source§impl<T: HasDateConstraints + Default + Clone> PickerConfig<T>
impl<T: HasDateConstraints + Default + Clone> PickerConfig<T>
pub fn guess_allowed_year_month(&self) -> NaiveDate
Trait Implementations§
Source§impl<T: Debug + HasDateConstraints + Default + Clone> Debug for PickerConfig<T>
impl<T: Debug + HasDateConstraints + Default + Clone> Debug for PickerConfig<T>
Source§impl<T: Default + HasDateConstraints + Default + Clone> Default for PickerConfig<T>
impl<T: Default + HasDateConstraints + Default + Clone> Default for PickerConfig<T>
Source§fn default() -> PickerConfig<T>
fn default() -> PickerConfig<T>
Returns the “default value” for a type. Read more
Source§impl<T: HasDateConstraints + Default + Clone> HasDateConstraints for PickerConfig<T>
impl<T: HasDateConstraints + Default + Clone> HasDateConstraints for PickerConfig<T>
Source§fn is_day_forbidden(&self, date: &NaiveDate) -> bool
fn is_day_forbidden(&self, date: &NaiveDate) -> bool
Returns true if the given date is forbidden.
Source§fn is_month_forbidden(&self, year_month_info: &NaiveDate) -> bool
fn is_month_forbidden(&self, year_month_info: &NaiveDate) -> bool
Returns true if the entire month described by year_month_info is forbidden.
Source§fn is_year_forbidden(&self, year: i32) -> bool
fn is_year_forbidden(&self, year: i32) -> bool
Returns true if the entire given year is forbidden.
Source§fn is_year_group_forbidden(&self, year: i32) -> bool
fn is_year_group_forbidden(&self, year: i32) -> bool
Returns true if the entire group of years including the given year is forbidden.
A group of years are inclusive intervals [1980, 1999], [2000, 2019], [2020, 2039], …
Auto Trait Implementations§
impl<T> Freeze for PickerConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for PickerConfig<T>where
T: RefUnwindSafe,
impl<T> Send for PickerConfig<T>where
T: Send,
impl<T> Sync for PickerConfig<T>where
T: Sync,
impl<T> Unpin for PickerConfig<T>where
T: Unpin,
impl<T> UnwindSafe for PickerConfig<T>where
T: UnwindSafe,
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