30 where ThisIndexableType : struct,
33 T
this[
int idx] {
get; }
50 where IndexableStruct : struct,
58 public Element
this[
int idx] {
61 throw new NullReferenceException(
62 "PooledIndexableStructWrapper failed to index missing "
63 + typeof(IndexableStruct).Name
64 +
"; did you assign its maybeIndexableStruct field?");
84 public static class BoxedIndexableStructExtensions {
99 public static void Recycle<Element,
101 IndexableStruct> pooledWrapper)
102 where IndexableStruct :
struct,
104 Pool<BoxedIndexableStruct<Element, IndexableStruct>>.Recycle(pooledWrapper);
114 where IndexableStruct : struct,
IIndexableStruct<Element, IndexableStruct> {
120 this.maybeIndexable = indexable;
Explicit boxing class for IIndexableStructs that implements IIndexable.
IndexableStruct? maybeIndexableStruct
The wrapped indexable struct, or null.
This easy-to-implement interface represents the ability to index into a collection of elements of typ...
This is a definition-friendly interface that new "indexable" struct definitions can implement to make...
Implement this interface to recieve a callback whenever your object is spawned from a pool.
A two-generic-argument variant of an enumerator that allows an IIndexableStruct to quickly define an ...
IndexableStructEnumerator< Element, IndexableStruct > GetEnumerator()
IndexableStructEnumerator(IndexableStruct indexable)
IndexableStruct? maybeIndexable