Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 6a642dd

Browse files
committed
Add mark comments
1 parent aaa0055 commit 6a642dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Sources/Classes/EventStreamMessage/EventStreamMessage.swift

+10
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,40 @@ struct EventStreamMessage: RawRepresentable {
4343
}
4444
}
4545

46+
// MARK: Equatable
47+
4648
extension EventStreamMessage: Equatable {
4749
static func == (lhs: EventStreamMessage, rhs: EventStreamMessage) -> Bool {
4850
return lhs.rawValue == rhs.rawValue
4951
}
5052
}
5153

54+
// MARK: Hashable
55+
5256
extension EventStreamMessage: Hashable {
5357
func hash(into hasher: inout Hasher) {
5458
hasher.combine(rawValue)
5559
}
5660
}
5761

62+
// MARK: CustomStringConvertible
63+
5864
extension EventStreamMessage: CustomStringConvertible {
5965
var description: String {
6066
return rawValue
6167
}
6268
}
6369

70+
// MARK: LosslessStringConvertible
71+
6472
extension EventStreamMessage: LosslessStringConvertible {
6573
init?(_ description: String) {
6674
self.init(rawValue: description)
6775
}
6876
}
6977

78+
// MARK: EventStreamMessageConvertible
79+
7080
extension EventStreamMessage: EventStreamMessageConvertible {
7181
var message: EventStreamMessage {
7282
return self

0 commit comments

Comments
 (0)