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.
pub const fn once_with<T, F: FnOnce() -> T>(function: F) -> OnceWith<F>Creates OnceWith<T> non-empty iterator that yields the value
computed from the given function exactly once.