Trait icu_provider::datagen::IterableDataProvider

source ·
pub trait IterableDataProvider<M: KeyedDataMarker>: DataProvider<M> {
    // Required method
    fn supported_locales(&self) -> Result<Vec<DataLocale>, DataError>;

    // Provided method
    fn supports_locale(&self, locale: &DataLocale) -> Result<bool, DataError> { ... }
}
Expand description

A DataProvider that can iterate over all supported DataLocale for a certain key.

Implementing this trait means that a data provider knows all of the data it can successfully return from a load request.

Required Methods§

Provided Methods§

source

fn supports_locale(&self, locale: &DataLocale) -> Result<bool, DataError>

Returns whether a DataLocale is in the supported locales list.

Implementors§