pub enum DateFormat {
DayMonthYear,
MonthDayYear,
}Variants§
Trait Implementations§
Source§impl Clone for DateFormat
impl Clone for DateFormat
Source§fn clone(&self) -> DateFormat
fn clone(&self) -> DateFormat
Returns a duplicate 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 Debug for DateFormat
impl Debug for DateFormat
Source§impl From<&str> for DateFormat
Supported values are dayMonthYear and monthDayYear.
impl From<&str> for DateFormat
Supported values are dayMonthYear and monthDayYear.
use date_time_parser_multi_language::DateFormat;
fn main() {
assert_eq!(DateFormat::from("dayMonthYear"), DateFormat::DayMonthYear);
assert_eq!(DateFormat::from("monthDayYear"), DateFormat::MonthDayYear);
}Source§fn from(input: &str) -> DateFormat
fn from(input: &str) -> DateFormat
Converts to this type from the input type.
Source§impl PartialEq for DateFormat
impl PartialEq for DateFormat
impl StructuralPartialEq for DateFormat
Auto Trait Implementations§
impl Freeze for DateFormat
impl RefUnwindSafe for DateFormat
impl Send for DateFormat
impl Sync for DateFormat
impl Unpin for DateFormat
impl UnwindSafe for DateFormat
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