pub struct MaterialDateInputFormat { /* private fields */ }Expand description
Native date input always uses two-digit month/day and four-digit year in the culture’s order. Eight underlying digits are displayed with two delimiters.
Implementations§
Source§impl MaterialDateInputFormat
impl MaterialDateInputFormat
pub fn for_culture(info: &DateTimeFormatInfo) -> Self
pub fn pattern(&self) -> String
pub fn digits(&self, date: DateTime) -> String
pub fn format_digits(&self, digits: &str) -> String
pub fn extract_digits(&self, text: &str) -> Option<String>
pub fn parse_digits(&self, digits: &str) -> Option<DateTime>
Trait Implementations§
Source§impl Clone for MaterialDateInputFormat
impl Clone for MaterialDateInputFormat
Source§impl Debug for MaterialDateInputFormat
impl Debug for MaterialDateInputFormat
impl Eq for MaterialDateInputFormat
Source§impl PartialEq for MaterialDateInputFormat
impl PartialEq for MaterialDateInputFormat
impl StructuralPartialEq for MaterialDateInputFormat
Auto Trait Implementations§
impl Freeze for MaterialDateInputFormat
impl RefUnwindSafe for MaterialDateInputFormat
impl Send for MaterialDateInputFormat
impl Sync for MaterialDateInputFormat
impl Unpin for MaterialDateInputFormat
impl UnsafeUnpin for MaterialDateInputFormat
impl UnwindSafe for MaterialDateInputFormat
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.