Creates a new vector by decoding scalars from the given decoder.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
Discussion
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.