See the Rust documentation for new
for more information.
Additional information: 1
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.
Same as fork_by_key
but forks by locale instead of key.
See the Rust documentation for IdentifierNotFoundPredicate
for more information.
Static
create_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 Err
s.
Static
create_Constructs an empty ICU4XDataProvider
.
See the Rust documentation for EmptyDataProvider
for more information.
Static
create_Constructs a BlobDataProvider
and returns it as an ICU4XDataProvider
.
See the Rust documentation for BlobDataProvider
for more information.
Static
create_Constructs an FsDataProvider
and returns it as an ICU4XDataProvider
. Requires the provider_fs
Cargo feature. Not supported in WASM.
See the Rust documentation for FsDataProvider
for more information.
An ICU4X data provider, capable of loading ICU4X data keys from some source.
See the Rust documentation for
icu_provider
for more information.