// // Recorded.swift // Rx // // Created by Krunoslav Zaher on 2/14/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // import Foundation import RxSwift import Swift /** Record of a value including the virtual time it was produced on. */ public struct Recorded : CustomDebugStringConvertible { /** Gets the virtual time the value was produced on. */ public let time: TestTime /** Gets the recorded value. */ public let value: Element public init(time: TestTime, event: Element) { self.time = time self.value = event } } extension Recorded { /** A textual representation of `self`, suitable for debugging. */ public var debugDescription: String { return "\(value) @ \(time)" } } public func == (lhs: Recorded, rhs: Recorded) -> Bool { return lhs.time == rhs.time && lhs.value == rhs.value } public func == (lhs: Recorded>, rhs: Recorded>) -> Bool { return lhs.time == rhs.time && lhs.value == rhs.value }