> ## Documentation Index
> Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# core::option::OptionIter

An iterator over the value in the [`Some`](./core-option#some) variant of an [`Option`](./core-option-Option).
The iterator yields one value if the [`Option`](./core-option-Option) is a [`Some`](./core-option#some), otherwise none.
This struct is created by the `into_iter` method on [`Option`](./core-option-Option) (provided by the
[`IntoIterator`](./core-iter-traits-collect-IntoIterator) trait).

## Signature

```rust theme={null}

#[derive(Drop)]
pub struct OptionIter {
    inner: Option,
}
```
