Generic Initializer

init(truncatingIfNeeded:)

Creates a new vector from the given vector, truncating the bit patterns of the given vector’s elements if necessary.

Declaration

init<Other>(truncatingIfNeeded other: SIMD64<Other>) where Other : FixedWidthInteger, Other : SIMDScalar
Available when Scalar conforms to FixedWidthInteger.

Parameters

other

The vector to convert.