Struct rat_input::date_input::DateInputState  
source · pub struct DateInputState {
    pub widget: MaskedInputState,
    pub pattern: String,
    pub locale: Locale,
    pub non_exhaustive: NonExhaustive,
}Expand description
State.
Use DateInputState::new(_pattern_) to set the date pattern.
Fields§
§widget: MaskedInputState§pattern: String§locale: Locale§non_exhaustive: NonExhaustiveImplementations§
source§impl DateInputState
 
impl DateInputState
pub fn new<S: AsRef<str>>(pattern: S) -> Result<Self, Error>
pub fn new_localized<S: AsRef<str>>( pattern: S, locale: Locale ) -> Result<Self, Error>
sourcepub fn set_format<S: AsRef<str>>(&mut self, pattern: S) -> Result<(), Error>
 
pub fn set_format<S: AsRef<str>>(&mut self, pattern: S) -> Result<(), Error>
chrono format string.
generates a mask according to the format and overwrites whatever set_mask() did.
sourcepub fn set_formats<S: AsRef<str>>(
    &mut self,
    pattern: S,
    locale: Locale
) -> Result<(), Error>
 
pub fn set_formats<S: AsRef<str>>( &mut self, pattern: S, locale: Locale ) -> Result<(), Error>
chrono format string.
generates a mask according to the format and overwrites whatever set_mask() did.
pub fn value(&self) -> Result<NaiveDate, ParseError>
pub fn set_value(&mut self, date: NaiveDate)
pub fn select_all(&mut self)
pub fn screen_cursor(&self) -> Option<Position>
Trait Implementations§
source§impl Debug for DateInputState
 
impl Debug for DateInputState
source§impl Default for DateInputState
 
impl Default for DateInputState
source§impl HandleEvent<Event, ConvenientKeys, Result<Outcome, Error>> for DateInputState
 
impl HandleEvent<Event, ConvenientKeys, Result<Outcome, Error>> for DateInputState
source§impl HandleEvent<Event, FocusKeys, Result<Outcome, Error>> for DateInputState
 
impl HandleEvent<Event, FocusKeys, Result<Outcome, Error>> for DateInputState
Auto Trait Implementations§
impl Freeze for DateInputState
impl RefUnwindSafe for DateInputState
impl Send for DateInputState
impl Sync for DateInputState
impl Unpin for DateInputState
impl UnwindSafe for DateInputState
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