Skip to main content

IterableDS

Trait IterableDS 

Source
pub trait IterableDS {
    type Item: TryInto<Resource, Error = Self::Err>;
    type Err;

    // Required method
    fn iter(
        &self,
    ) -> Result<impl Iterator<Item = Result<Self::Item, Self::Err>>, Self::Err>;
}
Expand description

Capability of a DataSource to provide an iterator over a collection of Features or Resources.

Required Associated Types§

Source

type Item: TryInto<Resource, Error = Self::Err>

Type representing a Feature which must be convertible to a Resource.

Source

type Err

Error raised by this.

Required Methods§

Source

fn iter( &self, ) -> Result<impl Iterator<Item = Result<Self::Item, Self::Err>>, Self::Err>

Return an iterator over this data source Features.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§