# EagerParentStackEnumerator

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/struct-eagerparentstackenumerator/

**struct** · [`ferroui-markup-xaml`](/docs/0.5.0/api/ferroui-markup-xaml/) · v0.5.0

```rust
struct EagerParentStackEnumerator
```

Walks the parents of an eager parent stack provider, the immediate
parent first, without building the list of all parents.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/eager_parent_stack_enumerator.rs#L10)

## Members

- [`try_get_next`](#function-try_get_next)
- [`try_get_next_of_type`](#function-try_get_next_of_type)

<a id="function-try_get_next"></a>

### try_get_next

```rust
fn try_get_next(self: &mut Self) -> Option<BoxedValue>
```

The next parent, or `None` when there are no more.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/eager_parent_stack_enumerator.rs#L23)

<a id="function-try_get_next_of_type"></a>

### try_get_next_of_type

```rust
fn try_get_next_of_type<T: FromXamlObject>(self: &mut Self) -> Option<T>
```

The next parent that is a `T`, or `None` when there are no more.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/eager_parent_stack_enumerator.rs#L45)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
