Function std::iter::empty

Overview
fn empty() -> Empty

Construct an iterator which produces no values.

Examples

use std::iter::empty;

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