Contents

encodeAtomicRepresentation(_:)

Destroys a value of Self and prepares an AtomicRepresentation storage type to be used for atomic operations.

Declaration

static func encodeAtomicRepresentation(_ value: consuming Self) -> Self.RawValue.AtomicRepresentation

Parameters

  • value:

    A valid instance of Self that’s about to be destroyed to encode an instance of its AtomicRepresentation.

Return Value

The newly encoded AtomicRepresentation storage.

Discussion