pub struct GregorianDateTimeFormatter(pub FixedCalendarDateTimeFormatter<Gregorian, YMDT>);
Expand description
An ICU4X FixedCalendarDateTimeFormatter object capable of formatting a IsoDateTime
as a string,
using the Gregorian Calendar.
Tuple Fields§
§0: FixedCalendarDateTimeFormatter<Gregorian, YMDT>
Implementations§
source§impl GregorianDateTimeFormatter
impl GregorianDateTimeFormatter
sourcepub fn create_with_length(
provider: &DataProvider,
locale: &Locale,
length: DateTimeLength,
) -> Result<Box<GregorianDateTimeFormatter>, PatternLoadError>
pub fn create_with_length( provider: &DataProvider, locale: &Locale, length: DateTimeLength, ) -> Result<Box<GregorianDateTimeFormatter>, PatternLoadError>
Creates a new GregorianDateFormatter
from locale data.
sourcepub fn format_iso_datetime(
&self,
value: &IsoDateTime,
write: &mut DiplomatWrite,
)
pub fn format_iso_datetime( &self, value: &IsoDateTime, write: &mut DiplomatWrite, )
Formats a IsoDateTime
to a string.
Auto Trait Implementations§
impl Freeze for GregorianDateTimeFormatter
impl RefUnwindSafe for GregorianDateTimeFormatter
impl Send for GregorianDateTimeFormatter
impl Sync for GregorianDateTimeFormatter
impl Unpin for GregorianDateTimeFormatter
impl UnwindSafe for GregorianDateTimeFormatter
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