Skip to main content

distinct

Function distinct 

Source
pub fn distinct<S, T>(stream: S) -> impl Stream<Item = T> + Send + 'static
where S: Stream<Item = T> + Send + 'static, T: Clone + Eq + Hash + Send + 'static,
Expand description

Emit only the first occurrence of each item.