Skip to content

Commit 8ffadf8

Browse files
committed
SE-0261 Identifiable Protocol
1 parent 40d4b2c commit 8ffadf8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Protocols.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ public protocol IHashable /*: Equatable*/ {
3535
var hashValue: Int { get }
3636
}
3737

38+
typealias Identifiable = IIdentifiable
39+
protocol IIdentifiable {
40+
associatedtype ID: IHashable
41+
var id: ID { get }
42+
}
43+
3844
public typealias OutputStreamType = IOutputStreamType
3945
public protocol IOutputStreamType {
4046
//mutating func write(_ string: String)

0 commit comments

Comments
 (0)