core
1.88.0-nightly-4824c2bb7-2025-05-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.