Crate icu_relativetimesource ·
🚧 [Experimental] Relative time formatting
This module is published as its own crate (
and as part of the
icu crate. See the latter for more details on the ICU4X project.
🚧 This code is experimental; it may change at any time, in breaking or non-breaking ways, including in SemVer minor releases. It can be enabled with the "experimental" Cargo feature of the icu meta-crate. Use with caution.
pub use options::RelativeTimeFormatterOptions;
pub use RelativeTimeError as Error;
- Options for configuring
- Data provider struct definitions for this ICU4X component.
- An intermediate structure returned by
RelativeTimeFormatter. This structure can be consumed via
Writeabletrait to a string or buffer.
- A formatter to render locale-sensitive relative time.
- A list of error outcomes for various operations in this module.