mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 12:55:59 +02:00
36 lines
583 B
Beef
36 lines
583 B
Beef
![]() |
using System;
|
||
|
|
||
|
namespace System.Collections
|
||
|
{
|
||
|
interface IEnumerator
|
||
|
{
|
||
|
Object Current { get; }
|
||
|
bool MoveNext();
|
||
|
void Reset();
|
||
|
void Dispose();
|
||
|
}
|
||
|
|
||
|
interface IEnumerable
|
||
|
{
|
||
|
IEnumerator GetEnumerator();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace System.Collections.Generic
|
||
|
{
|
||
|
interface IEnumerator<T>
|
||
|
{
|
||
|
Result<T> GetNext() mut;
|
||
|
}
|
||
|
|
||
|
interface IRefEnumerator<T> : IEnumerator<T>
|
||
|
{
|
||
|
Result<T*> GetNextRef() mut;
|
||
|
}
|
||
|
|
||
|
concrete interface IEnumerable<T>
|
||
|
{
|
||
|
concrete IEnumerator<T> GetEnumerator();
|
||
|
}
|
||
|
}
|