# CompiledBindingPathElement

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/struct-compiledbindingpathelement/

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

```rust
struct CompiledBindingPathElement<'a>
```

A read-only view of an element of a [`CompiledBindingPath`](/docs/0.5.0/api/ferroui-base/data/struct-compiledbindingpath/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L174)

## Members

- [`kind`](#function-kind)
- [`name`](#function-name)
- [`property`](#function-property)
- [`property_type`](#function-property_type)
- [`is_typed_property`](#function-is_typed_property)
- [`accepts_null`](#function-accepts_null)
- [`ancestor`](#function-ancestor)
- [`array_indices`](#function-array_indices)

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

### kind

```rust
fn kind(self: &Self) -> CompiledBindingPathElementKind
```

What the element is.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L178)

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

### name

```rust
fn name(self: &Self) -> Option<&'a str>
```

The name of the member a property or method element reads, of the
element a named-element element selects.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L202)

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

### property

```rust
fn property(self: &Self) -> Option<Rc<dyn IPropertyInfo>>
```

The description of the property a property element reads (the
`Property` of the managed original). `None` for other elements and
for a property that only has untyped accessors (its name and type
are `name` and `property_type`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L221)

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

### property_type

```rust
fn property_type(self: &Self) -> Option<ValueType>
```

The type of the property a property element reads.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L232)

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

### is_typed_property

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

Whether the element is a property with typed accessors: the one a
path must consist of to be instantiated as a typed binding
expression.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L242)

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

### accepts_null

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

Whether a null-conditional operator applies to the access.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L247)

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

### ancestor

```rust
fn ancestor(self: &Self) -> Option<(Option<&'static TypeInfo>, usize)>
```

The ancestor type and level of an ancestor element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L258)

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

### array_indices

```rust
fn array_indices(self: &Self) -> Option<&'a [i32]>
```

The indexes of an array element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/compiled_binding_path.rs#L268)

## Trait implementations

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

## Availability

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