Struct datetime::fmt::DateFormat
[−]
[src]
pub struct DateFormat<'a> { pub fields: Vec<Field<'a>>, }
Fields
fields: Vec<Field<'a>>
Methods
impl<'a> DateFormat<'a>
[src]
fn format<T>(&self, when: &T, locale: &Time) -> String where
T: DatePiece + TimePiece,
[src]
T: DatePiece + TimePiece,
fn parse(input: &'a str) -> Result<DateFormat<'a>, FormatError>
[src]
Trait Implementations
impl<'a> PartialEq for DateFormat<'a>
[src]
fn eq(&self, __arg_0: &DateFormat<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DateFormat<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Eq for DateFormat<'a>
[src]
impl<'a> Clone for DateFormat<'a>
[src]
fn clone(&self) -> DateFormat<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more