Struct rat_widget::date_input::RDateInput
source · pub struct RDateInput<'a> { /* private fields */ }Expand description
Widget for dates.
Implementations§
source§impl<'a> RDateInput<'a>
impl<'a> RDateInput<'a>
pub fn new() -> Self
sourcepub fn show_compact(self, show_compact: bool) -> Self
pub fn show_compact(self, show_compact: bool) -> Self
Show the compact form, if the focus is not with this widget.
sourcepub fn styles(self, style: MaskedInputStyle) -> Self
pub fn styles(self, style: MaskedInputStyle) -> Self
Set the combined style.
sourcepub fn focus_style(self, style: impl Into<Style>) -> Self
pub fn focus_style(self, style: impl Into<Style>) -> Self
Style when focused.
sourcepub fn select_style(self, style: impl Into<Style>) -> Self
pub fn select_style(self, style: impl Into<Style>) -> Self
Style for selection
sourcepub fn invalid_style(self, style: impl Into<Style>) -> Self
pub fn invalid_style(self, style: impl Into<Style>) -> Self
Style for the invalid indicator.
pub fn block(self, block: Block<'a>) -> Self
Trait Implementations§
source§impl<'a> Clone for RDateInput<'a>
impl<'a> Clone for RDateInput<'a>
source§fn clone(&self) -> RDateInput<'a>
fn clone(&self) -> RDateInput<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for RDateInput<'a>
impl<'a> Debug for RDateInput<'a>
source§impl<'a> Default for RDateInput<'a>
impl<'a> Default for RDateInput<'a>
source§fn default() -> RDateInput<'a>
fn default() -> RDateInput<'a>
Returns the “default value” for a type. Read more
source§impl<'a> StatefulWidget for RDateInput<'a>
impl<'a> StatefulWidget for RDateInput<'a>
source§impl<'a> StatefulWidgetRef for RDateInput<'a>
impl<'a> StatefulWidgetRef for RDateInput<'a>
§type State = RDateInputState
type State = RDateInputState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a> Freeze for RDateInput<'a>
impl<'a> RefUnwindSafe for RDateInput<'a>
impl<'a> Send for RDateInput<'a>
impl<'a> Sync for RDateInput<'a>
impl<'a> Unpin for RDateInput<'a>
impl<'a> UnwindSafe for RDateInput<'a>
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