value · System
SpanIterator<T>
public value SpanIterator<T>
The elements of a span, in order.
- Tipo
- value
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public
- Archivo fuente
Span.ant
Parámetros de tipo
| Nombre | Restricciones |
|---|---|
T | cualquier tipo |
Constructores
Propiedades
T Current { get; }
#
Métodos
Código fuente
SpanIterator<T> en Antril, descompilado a partir de su Larva HIR.
// System.SpanIterator — System.Core (decompiled from Larva HIR)
into namespace System
{
/// The elements of a span, in order.
public value SpanIterator<T>
{
Span<T> span;
i32 index;
public:
new(Span<T> span)
{
this.span = span;
index = -1;
}
Next() : bool
{
index++;
return index < span.Length;
}
T Current
{
get => span[index];
}
}
}