Skip to main content

IterableDynamicDataProvider

Trait IterableDynamicDataProvider 

Source
pub trait IterableDynamicDataProvider<M: DynamicDataMarker>: DynamicDataProvider<M> {
    // Required method
    fn iter_ids_for_marker(
        &self,
        marker: DataMarkerInfo,
    ) -> Result<BTreeSet<DataIdentifierCow<'_>>, DataError>;
}
Expand description

A DynamicDataProvider that can iterate over all supported DataIdentifierCows for a certain marker.

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.

✨ Enabled with the alloc Cargo feature.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<M, P> IterableDynamicDataProvider<M> for Box<P>

Available on crate feature alloc only.

Implementors§