# NavigationType

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/page/enum-navigationtype/

**enum** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
enum NavigationType
```

Describes the type of navigation that occurred.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L5)

## Members

- [`Push`](#variant-push)
- [`Pop`](#variant-pop)
- [`PopToRoot`](#variant-poptoroot)
- [`Insert`](#variant-insert)
- [`Remove`](#variant-remove)
- [`Replace`](#variant-replace)
- [`PushModal`](#variant-pushmodal)
- [`PopModal`](#variant-popmodal)

<a id="variant-push"></a>

### Push

```rust
Push = 0
```

A page was pushed onto the navigation stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L7)

<a id="variant-pop"></a>

### Pop

```rust
Pop = 1
```

The top page was popped from the navigation stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L10)

<a id="variant-poptoroot"></a>

### PopToRoot

```rust
PopToRoot = 2
```

All pages above the root were popped.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L13)

<a id="variant-insert"></a>

### Insert

```rust
Insert = 3
```

A page was inserted into the navigation stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L16)

<a id="variant-remove"></a>

### Remove

```rust
Remove = 4
```

A page was removed from the navigation stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L19)

<a id="variant-replace"></a>

### Replace

```rust
Replace = 5
```

The current page was replaced.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L22)

<a id="variant-pushmodal"></a>

### PushModal

```rust
PushModal = 6
```

A page was pushed onto the modal stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L25)

<a id="variant-popmodal"></a>

### PopModal

```rust
PopModal = 7
```

The top page was popped from the modal stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/navigation_type.rs#L28)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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