SwiftstructCoreTransferable

struct CoreTransferable.DataRepresentation

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 9

  1. funcstatic _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.DataRepresentation<A>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs
  2. fieldlet contentType: UniformTypeIdentifiers.UTType
  3. fieldlet exporting: (@Sendable (A) async throws -> Foundation.Data)?
  4. fieldlet importing: (@Sendable (Foundation.Data) async throws -> A)?
  5. initinit(contentType: UniformTypeIdentifiers.UTType, exporting: @Sendable (A) async throws -> Foundation.Data, importing: @Sendable (Foundation.Data) async throws -> A) -> CoreTransferable.DataRepresentation<A>
  6. initinit(exportedContentType: UniformTypeIdentifiers.UTType, exporting: @Sendable (A) async throws -> Foundation.Data) -> CoreTransferable.DataRepresentation<A>
  7. initinit(importedContentType: UniformTypeIdentifiers.UTType, importing: @Sendable (Foundation.Data) async throws -> A) -> CoreTransferable.DataRepresentation<A>
  8. typealiastypealias Body = Swift.Never
  9. typealiastypealias Item = A
struct DataRepresentation<A> where A: CoreTransferable.Transferable {
    let contentType: UniformTypeIdentifiers.UTType
    let exporting: (@Sendable (_: A) async throws -> Foundation.Data)?
    let importing: (@Sendable (_: Foundation.Data) async throws -> A)?

    init(contentType: UniformTypeIdentifiers.UTType, exporting: @escaping @Sendable (_: A) async throws -> Foundation.Data, importing: @escaping @Sendable (_: Foundation.Data) async throws -> A)
    init(exportedContentType: UniformTypeIdentifiers.UTType, exporting: @escaping @Sendable (_: A) async throws -> Foundation.Data)
    init(importedContentType: UniformTypeIdentifiers.UTType, importing: @escaping @Sendable (_: Foundation.Data) async throws -> A)

    static func _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.DataRepresentation<A>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs
}