encodeLabels(_:)

Declaration

func encodeLabels(_ annotations: some Collection<Optional<Label>>) throws -> (labels: [String?], encoded: [Int])