Module once_with
core
1.92.0-nightly
(5c7ae0c7e 2025-10-02)
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.