Skip to content

Commit

Permalink
Implement Codable, Equatable, and Hashable conformance for SortingAlg…
Browse files Browse the repository at this point in the history
…orithmStep
  • Loading branch information
kylehughes committed Apr 7, 2024
1 parent d4d6299 commit 08c6214
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Sources/SortStateUniversity/SortingAlgorithmStep.swift
Expand Up @@ -96,3 +96,21 @@ public enum SortingAlgorithmStep<Algorithm> where Algorithm: SortStateUniversity
return output
}
}

// MARK: - Codable Extension

extension SortingAlgorithmStep: Codable where Algorithm: Codable, Algorithm.Element: Codable {
// NO-OP
}

// MARK: - Equatable Extension

extension SortingAlgorithmStep: Equatable where Algorithm: Equatable, Algorithm.Element: Equatable {
// NO-OP
}

// MARK: - Hashable Extension

extension SortingAlgorithmStep: Hashable where Algorithm: Hashable, Algorithm.Element: Hashable {
// NO-OP
}

0 comments on commit 08c6214

Please sign in to comment.