Trait icu_provider::IterableDataProvider
source · pub trait IterableDataProvider<M: DataMarker>: DataProvider<M> {
// Required method
fn iter_ids(&self) -> Result<BTreeSet<DataIdentifierCow<'_>>, DataError>;
}
Expand description
A DataProvider
that can iterate over all supported DataIdentifierCow
s.
The provider is not allowed to return Ok
for requests that were not returned by iter_ids
,
and must not fail with a DataErrorKind::IdentifierNotFound
for requests that were returned.
Required Methods§
sourcefn iter_ids(&self) -> Result<BTreeSet<DataIdentifierCow<'_>>, DataError>
fn iter_ids(&self) -> Result<BTreeSet<DataIdentifierCow<'_>>, DataError>
Returns a set of DataIdentifierCow
.