# AggregateItem

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/aggregation/struct-aggregateitem/

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

```rust
struct AggregateItem<T>
```

An item that is added to or removed from a continuous aggregation (`AggregateItem<TObject>`).

Equality and hashing are those of the type and the item (upstream's `IEquatable`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregate_item.rs#L9)

## Members

- [`new`](#function-new)
- [`aggregate_type`](#function-aggregate_type)
- [`item`](#function-item)
- [`into_item`](#function-into_item)

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

### new

```rust
fn new(aggregate_type: AggregateType, item: T) -> Self
```

An item of `aggregate_type` (`AggregateItem(AggregateType, TObject)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregate_item.rs#L16)

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

### aggregate_type

```rust
fn aggregate_type(self: &Self) -> AggregateType
```

Whether the item is added or removed (`Type`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregate_item.rs#L21)

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

### item

```rust
fn item(self: &Self) -> &T
```

The item (`Item`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregate_item.rs#L26)

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

### into_item

```rust
fn into_item(self: Self) -> T
```

The item, taken out.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregate_item.rs#L31)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Equivalent<K>`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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