once

Function once 

Source
pub const fn once<T>(value: T) -> Once<T>
Expand description

Creates Once<T>, non-empty iterator that yields the given value exactly once.