Skip to main content

empty

Function empty 

Source
pub const fn empty<L: ?Sized + for<'all> Lending<'all>>() -> Empty<L>
Expand description

Creates a lender that yields nothing.

The Lender version of core::iter::empty().

ยงExamples

let x: Option<&'_ mut i32> = e.next();
assert_eq!(x, None);