Function from_iter
pub fn from_iter<I>(iterator: I) -> FromIter<<I as IntoIterator>::IntoIter> ⓘwhere
I: IntoIterator,
Available on crate feature
dep_rodio
only.Expand description
Builds a source that chains sources provided by an iterator.
The iterator
parameter is an iterator that produces a source. The source is then played.
Whenever the source ends, the iterator
is used again in order to produce the source that is
played next.
If the iterator
produces None
, then the sound ends.