Function ::std::iter::empty

Overview
fn empty() -> Iterator

Construct an iterator which produces no values.

Examples

use std::iter::empty;

assert!(empty().next().is_none());
assert_eq!(empty().collect::<Vec>(), []);