mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
[BasicContainers] RigidArray.isTriviallyIdentical(to:): Don’t require Equatable elements, but do allow noncopyable ones
This commit is contained in:
1 file changed
+1
-1
@@ -18,7 +18,7 @@ import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
extension RigidArray /*: Equatable */ where Element: Equatable /* & ~Copyable */ {
|
||||
extension RigidArray where Element: ~Copyable {
|
||||
public func isTriviallyIdentical(to other: borrowing Self) -> Bool {
|
||||
self._storage._isIdentical(to: other._storage)
|
||||
&& self._count == other._count
|
||||
|
||||
Reference in new issue
Block a user