# AggregateValue

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

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

```rust
trait AggregateValue: Copy + 'static
```

The value a selector of `Sum` or `Avg` returns: a number, or an `Option` of a number whose
`None` counts as zero (the nullable overloads, `valueSelector(t).GetValueOrDefault()`).

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

## Members

- [`Number`](#assoc_type-number)
- [`number`](#function-number)

<a id="assoc_type-number"></a>

### Number

```rust
type Number: AggregateNumber
```

The number the value counts as.

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

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

### number

```rust
fn number(self: Self) -> <Self as >::Number
```

The number the value counts as: the value itself, or zero for a `None`.

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

## Trait implementations

- [`AggregateValue`](/docs/0.5.0/api/ferroui-dynamic-data/aggregation/trait-aggregatevalue/)

## Availability

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