Trait icu_provider::iter::IterableProvider
source · [−]pub trait IterableProvider {
fn supported_options_for_key(
&self,
resc_key: &ResourceKey
) -> Result<Box<dyn Iterator<Item = ResourceOptions>>, DataError>;
}
Expand description
A provider that can iterate over all supported ResourceOptions
for a certain key.
Implementing this trait means that a DataProvider
knows all of the data it can successfully
return from a load request.
Required methods
fn supported_options_for_key(
&self,
resc_key: &ResourceKey
) -> Result<Box<dyn Iterator<Item = ResourceOptions>>, DataError>
fn supported_options_for_key(
&self,
resc_key: &ResourceKey
) -> Result<Box<dyn Iterator<Item = ResourceOptions>>, DataError>
Given a ResourceKey
, returns a boxed iterator over ResourceOptions
.