OptionIter
An iterator over the value in the Some
variant of an Option
.The iterator yields one value if the Option
is a Some
, otherwise none.This struct is created by the into_iter
method on Option
(provided by the IntoIterator
trait).
Fully qualified path: core::option::OptionIter
#[derive(Drop)]
pub struct OptionIter<T> {
inner: Option<T>,
}