Class ICU4XDataProvider

An ICU4X data provider, capable of loading ICU4X data keys from some source.

See the Rust documentation for icu_provider for more information.

Constructors

Methods

  • Creates a provider that tries the current provider and then, if the current provider doesn't support the data key, another provider other.

    This takes ownership of the other provider, leaving an empty provider in its place.

    The providers must be the same type (Any or Buffer). This condition is satisfied if both providers originate from the same constructor, such as create_from_byte_slice or create_fs. If the condition is not upheld, a runtime error occurs.

    See the Rust documentation for ForkByMarkerProvider for more information.

    Parameters

    Returns void

  • Constructs an ICU4XDataProvider that uses compiled data.

    Requires the compiled_data feature.

    This provider cannot be modified or combined with other providers, so enable_fallback, enabled_fallback_with, fork_by_locale, and fork_by_key will return Errs.

    Returns ICU4XDataProvider