Module once

Module once 

Source
Expand description

Yielding items exactly once.

Structs§

Once
Represents non-empty iterators that yield the given value exactly once.
OnceWith
Represents non-empty iterators that yield the value computed from the given function exactly once.

Functions§

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