core.internal.array.casting

This module contains compiler support for casting dynamic arrays

Functions 2

private fnvoid onArrayCastError()(string fromType, size_t fromSize, size_t fromLength, string toType, size_t toElemSize) @trustedUsed by `__ArrayCast` to emit a descriptive error message.
fnTTo[] __ArrayCast(TFrom, TTo)(return scope TFrom[] from) @nogc pure @trustedThe compiler lowers expressions of `cast(TTo[])TFrom[]` to this implementation. Note that this does not detect alignment problems.