Skip to main content

empty

Function empty 

Source
pub const fn empty<T>() -> Empty<T> 
Expand description

Creates a bulk that yields nothing.

Similar to core::iter::empty.

§Examples

Basic usage:

use bulks::*;

let mut nope = bulks::empty::<i32>();

let nothing: [_; _] = nope.collect();
 
assert_eq!(nothing, []);