Skip to main content

source_with_sample

Function source_with_sample 

Source
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.