pub struct Intl;Available on crate feature
datetime-intl only.Expand description
The host’s date formatter (Host::format_date_time). A host without one
(it answers false, the default: an application that names
mf2_host_web::HOST rather than INTL_HOST), or one that rejects the
request, gets the neutral text.
Trait Implementations§
Source§impl Backend for Intl
impl Backend for Intl
Source§fn supports(
&self,
_cx: &FnContext<'_>,
plan: &Plan<'_>,
) -> Result<(), FormatError>
fn supports( &self, _cx: &FnContext<'_>, plan: &Plan<'_>, ) -> Result<(), FormatError>
A plan outside ECMA-402’s time range is an Unsupported Operation (the ICU4X backend’s range is narrower still).
Source§fn dir(&self, cx: &FnContext<'_>, _plan: &Plan<'_>) -> Dir
fn dir(&self, cx: &FnContext<'_>, _plan: &Plan<'_>) -> Dir
Localized text has the catalog’s direction.
Source§fn format(&self, cx: &FnContext<'_>, plan: &Plan<'_>, out: &mut dyn Sink)
fn format(&self, cx: &FnContext<'_>, plan: &Plan<'_>, out: &mut dyn Sink)
Writes
plan for cx.locale().Source§fn format_parts(
&self,
cx: &FnContext<'_>,
plan: &Plan<'_>,
out: &mut dyn SubPartSink,
)
fn format_parts( &self, cx: &FnContext<'_>, plan: &Plan<'_>, out: &mut dyn SubPartSink, )
Writes
plan’s sub-parts (none by default).impl Copy for Intl
Auto Trait Implementations§
impl Freeze for Intl
impl RefUnwindSafe for Intl
impl Send for Intl
impl Sync for Intl
impl Unpin for Intl
impl UnsafeUnpin for Intl
impl UnwindSafe for Intl
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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