# Grouping

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/linq/struct-grouping/

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

```rust
struct Grouping<K, E>
```

The elements of one key of a [`Lookup`](/docs/0.5.0/api/ferroui-reactive/linq/struct-lookup/) (`IGrouping<TKey, TElement>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_lookup.rs#L15)

## Members

- [`key`](#function-key)
- [`elements`](#function-elements)
- [`iter`](#function-iter)

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

### key

```rust
fn key(self: &Self) -> &K
```

The key of the group (`Key`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_lookup.rs#L22)

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

### elements

```rust
fn elements(self: &Self) -> &[E]
```

The elements of the group, in the order they were added.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_lookup.rs#L27)

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

### iter

```rust
fn iter(self: &Self) -> std::slice::Iter<'_, E>
```

The elements of the group (`GetEnumerator`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_lookup.rs#L32)

## Trait implementations

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

## Availability

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