1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 23:04:09 +02:00
Beef/BeefLibs/corlib/src/Collections/IEnumerator.bf

30 lines
430 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
using System;
namespace System.Collections
2019-08-23 11:56:54 -07:00
{
interface IEnumerator<T>
{
Result<T> GetNext() mut;
}
interface IResettable
{
void Reset() mut;
}
interface IRefEnumerator<T>
2019-08-23 11:56:54 -07:00
{
Result<T> GetNextRef() mut;
2019-08-23 11:56:54 -07:00
}
concrete interface IEnumerable<T>
{
concrete IEnumerator<T> GetEnumerator();
}
concrete interface IRefEnumerable<T>
{
concrete IRefEnumerator<T> GetEnumerator();
}
2019-08-23 11:56:54 -07:00
}