pub enum Kind {
Date,
DateTime,
Month,
}Expand description
Which pattern: a date, a date-time or a month/year.
Variants§
Implementations§
Source§impl Kind
impl Kind
Sourcepub const fn default_pattern(self) -> &'static str
pub const fn default_pattern(self) -> &'static str
The pattern of this kind when none is configured: d/m/Y, d/m/Y h:i a or m/Y.
Sourcepub const fn cast_fallback(self) -> &'static str
pub const fn cast_fallback(self) -> &'static str
The pattern of this kind for values when none is configured: two-digit years, as older code wrote them. Pass it
as the fallback of format() for Purpose::Value, as frontend_config does.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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> 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.