Contents

encodeAtomicOptionalRepresentation(_:)

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

Declaration

static func encodeAtomicOptionalRepresentation(_ value: consuming Self?) -> Self.RawValue.AtomicOptionalRepresentation

Parameters

  • value:

    An optional instance of Self that’s about to be destroyed to encode an instance of its AtomicOptionalRepresentation.

Return Value

The newly encoded AtomicOptionalRepresentation storage.

Discussion