pub fn source_with_sample<T, I>(
items: I,
sample: usize,
) -> Result<SerializeSource<I::IntoIter>, DataError>where
T: Serialize,
I: IntoIterator<Item = T>,Expand description
Stream items, sampling the first sample.
pub fn source_with_sample<T, I>(
items: I,
sample: usize,
) -> Result<SerializeSource<I::IntoIter>, DataError>where
T: Serialize,
I: IntoIterator<Item = T>,Stream items, sampling the first sample.