# IFerroListItemValidator

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/collections/trait-iferrolistitemvalidator/

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

```rust
trait IFerroListItemValidator<T>
```

Validates the items added to a `FerroList`.

Internal to the framework in the managed original; public here so that
the classes of other crates can validate the items of their lists.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/collections/i_ferro_list_item_validator.rs#L5)

## Members

- [`validate`](#function-validate)

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

### validate

```rust
fn validate(self: &Self, item: &T)
```

Validates an item before it is added; rejects it by panicking.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/collections/i_ferro_list_item_validator.rs#L7)

## Availability

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