core
1.91.0-nightly
(1ebbd87a6 2025-08-11)
Module once_
with
Module Items
Structs
Functions
In core::
iter::
sources
core
::
iter
::
sources
Module
once_with
Copy item path
Source
Structs
§
Once
With
An iterator that yields a single element of type
A
by applying the provided closure
F: FnOnce() -> A
.
Functions
§
once_
with
Creates an iterator that lazily generates a value exactly once by invoking the provided closure.