# IndexPath

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/selection/struct-indexpath/

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

```rust
struct IndexPath
```

An immutable path from the source root. Display uses the upstream `R.0.1` notation.

A path may store a negative component, as upstream constructors do; selection operations
validate it. An empty path denotes the root, not an unselected item (`None` denotes that).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L35)

## Members

- [`create_from`](#function-create_from)
- [`create_from_group_and_item_index`](#function-create_from_group_and_item_index)
- [`create_from_indices`](#function-create_from_indices)
- [`get_size`](#function-get_size)
- [`get_at`](#function-get_at)
- [`compare_to`](#function-compare_to)
- [`is_valid`](#function-is_valid)
- [`is_empty`](#function-is_empty)
- [`as_slice`](#function-as_slice)
- [`clone_with_child_index`](#function-clone_with_child_index)

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

### create_from

```rust
fn create_from(index: i32) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L38)

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

### create_from_group_and_item_index

```rust
fn create_from_group_and_item_index(group_index: i32, item_index: i32) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L39)

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

### create_from_indices

```rust
fn create_from_indices(indices: impl IntoIterator<Item = i32>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L42)

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

### get_size

```rust
fn get_size(self: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L45)

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

### get_at

```rust
fn get_at(self: &Self, index: i32) -> Result<i32, SelectionError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L46)

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

### compare_to

```rust
fn compare_to(self: &Self, other: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L49)

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

### is_valid

```rust
fn is_valid(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L52)

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

### is_empty

```rust
fn is_empty(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L53)

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

### as_slice

```rust
fn as_slice(self: &Self) -> &[i32]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L54)

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

### clone_with_child_index

```rust
fn clone_with_child_index(self: &Self, child_index: i32) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/selection/index_path.rs#L55)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- [`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`
- `Clone`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `PartialOrd`
- `Ord`
- `Hash`
- `From<i32>`
- `From<&[i32]>`
- `Display`
- `Debug`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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