Function icu_datagen::datagen
source · [−]pub fn datagen(
locales: Option<&[LanguageIdentifier]>,
keys: &[DataKey],
source: &SourceData,
outs: Vec<Out>
) -> Result<(), DataError>
Expand description
Runs ICU4X datagen.
The argument are used as follows:
locales
: If this is present, only locales that are eitherund
or contained (strictly, i.e.en
!=en-US
) in the slice will be generated. Otherwise, all locales supported by the source data will be generated.keys
: The keys for which to generate data. Seeall_keys
,keys
,keys_from_file
,keys_from_bin
.sources
: The underlying source data. CLDR and/or ICU data can be missing if no requested key requires them, otherwise an error satisfyingis_missing_cldr_error
oris_missing_icuexport_error
will be returned.out
: The output format and location. See the documentation onOut