Crate icu_relativetime

Crate icu_relativetime 

Source
Expand description

🚧 [Experimental] Relative time formatting

This module is published as its own crate (icu_relativetime) 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.

Re-exports§

pub use options::RelativeTimeFormatterOptions;
pub use RelativeTimeError as Error;

Modules§

options
Options for configuring RelativeTimeFormatter.
provider
Data provider struct definitions for this ICU4X component.

Structs§

FormattedRelativeTime
An intermediate structure returned by RelativeTimeFormatter. This structure can be consumed via Writeable trait to a string or buffer.
RelativeTimeFormatter
A formatter to render locale-sensitive relative time.

Enums§

RelativeTimeError
A list of error outcomes for various operations in this module.