Skip to main content

Module once_with

Module once_with 

Source

Re-exportsยง

use crate::fmt; ๐Ÿ”’
use crate::iter::FusedIterator; ๐Ÿ”’
use crate::iter::TrustedLen; ๐Ÿ”’ Experimental

Structsยง

OnceWith
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.