pub trait ToDatumIter: Sized {
type DatumIter<'a>: IntoIterator<Item = Datum<'a>>
where Self: 'a;
// Required method
fn to_datum_iter(&self) -> Self::DatumIter<'_>;
}
Expand description
A helper trait to turn a type into an iterator of datums.
Required Associated Types§
Sourcetype DatumIter<'a>: IntoIterator<Item = Datum<'a>>
where
Self: 'a
type DatumIter<'a>: IntoIterator<Item = Datum<'a>> where Self: 'a
An iterator type for use in to_datum_iter
.
Required Methods§
Sourcefn to_datum_iter(&self) -> Self::DatumIter<'_>
fn to_datum_iter(&self) -> Self::DatumIter<'_>
Obtains an iterator of datums out of an instance of &Self
.
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.