License
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE) Source: core/internal/_array/_casting.d
This module contains compiler support for casting dynamic arrays
(See accompanying file LICENSE) Source: core/internal/_array/_casting.d
void onArrayCastError()(string fromType, size_t fromSize, size_t fromLength, string toType, size_t toElemSize) @trustedUsed by `__ArrayCast` to emit a descriptive error message.TTo[] __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.