pub struct DateFormatter(pub DateTimeFormatter<DateFieldSet>);
Tuple Fields§
§0: DateTimeFormatter<DateFieldSet>
Implementations§
Source§impl DateFormatter
impl DateFormatter
pub fn create_d( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_d_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_md( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_md_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_ymd( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_ymd_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_de( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_de_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_mde( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_mde_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_ymde( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_ymde_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_e( locale: &Locale, length: Option<DateTimeLength>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_e_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_m( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_m_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_ym( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_ym_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_y( locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn create_y_with_provider( provider: &DataProvider, locale: &Locale, length: Option<DateTimeLength>, alignment: Option<DateTimeAlignment>, year_style: Option<YearStyle>, ) -> Result<Box<Self>, DateTimeFormatterLoadError>
pub fn format_iso(&self, date: &IsoDate, write: &mut DiplomatWrite)
pub fn format_same_calendar( &self, date: &Date, write: &mut DiplomatWrite, ) -> Result<(), DateTimeMismatchedCalendarError>
Auto Trait Implementations§
impl Freeze for DateFormatter
impl RefUnwindSafe for DateFormatter
impl Send for DateFormatter
impl Sync for DateFormatter
impl Unpin for DateFormatter
impl UnwindSafe for DateFormatter
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