pub trait FromDatumIter: Sized + Default {
// Required methods
fn from_datum_iter<'a, I, D>(&mut self, datum_iter: I) -> Self
where I: IntoIterator<Item = D>,
D: Borrow<Datum<'a>>;
fn try_from_datum_iter<'a, I, D, E>(
&mut self,
datum_iter: I,
) -> Result<Self, E>
where I: IntoIterator<Item = Result<D, E>>,
D: Borrow<Datum<'a>>;
}
Expand description
A helper trait to construct target values from input Row
instances.
Required Methods§
Sourcefn from_datum_iter<'a, I, D>(&mut self, datum_iter: I) -> Self
fn from_datum_iter<'a, I, D>(&mut self, datum_iter: I) -> Self
Obtains an instance of Self' given an iterator of borrowed datums and a schema provided by
types`.
Sourcefn try_from_datum_iter<'a, I, D, E>(&mut self, datum_iter: I) -> Result<Self, E>
fn try_from_datum_iter<'a, I, D, E>(&mut self, datum_iter: I) -> Result<Self, E>
Obtains an instance of Self' given an iterator of results of borrowed datums and a schema provided by
types`.
In the case the iterator produces an error, the pushing of datums is terminated and the error returned.
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.