# PhysicsResultEnumerable<T, TFilter>.Enumerator

> Walks a physics result array and yields only the elements the filter keeps.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public ref struct PhysicsResultEnumerable<T, TFilter>.Enumerator
```

## Remarks

This is a value-type enumerator so a foreach over the filtered view allocates nothing.

## Constructors

| Constructor                                                                                                                                          | Description                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [Enumerator(Unity.Collections.NativeArray\{\`0},\`1)](/engine/6000.7/script-reference/unity/u2d/physics/physicsresultenumerable2/enumerator/ctor.md) | Create an enumerator over a result array and its filter. |

## Properties

| Property                                                                                                    | Description                                                |
| ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [Current](/engine/6000.7/script-reference/unity/u2d/physics/physicsresultenumerable2/enumerator/current.md) | Get the element at the current position of the enumerator. |

## Methods

| Method                                                                                                        | Description                                   |
| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [MoveNext](/engine/6000.7/script-reference/unity/u2d/physics/physicsresultenumerable2/enumerator/movenext.md) | Advance to the next element the filter keeps. |
