HaishinKit.swift/Sources/Core/Protocol.swift

21 lines
300 B
Swift

import Foundation
protocol DataConvertible {
var data:Data { get set }
}
// MARK: -
protocol Runnable: class {
var running:Bool { get }
func startRunning()
func stopRunning()
}
// MARK: -
protocol Iterator {
associatedtype T
func hasNext() -> Bool
func next() -> T?
}