once_with

Function once_with 

Source
pub const fn once_with<T, F: FnOnce() -> T>(function: F) -> OnceWith<F>
Expand description

Creates OnceWith<T> non-empty iterator that yields the value computed from the given function exactly once.