Raw data slice. Constraints: Field is defined only for contiguous slices.
auto arr = [1, 2, 3, 4]; auto sl0 = arr.sliced; auto sl1 = arr.slicedField; assert(sl0.field is arr); assert(sl1.field is arr); arr = arr[1 .. $]; sl0 = sl0[1 .. $]; sl1 = sl1[1 .. $]; assert(sl0.field is arr); assert(sl1.field is arr); assert((cast(const)sl1).field is arr); ()@trusted{ assert((cast(immutable)sl1).field is arr); }();
Field (array) data.