Tradable
public protocol Tradable
A type with value that can be converted from/to TweakTradeValue value.
Trade is the combination of import and export.
-
Converts trade value to the concrete type object.
Implementers should try their best to achieve the conversion.
Declaration
Swift
static func unmarshal(from value: TweakTradeValue) -> Self?Parameters
valueThe trade value that the conversion performs from.
Return Value
The concrete type object.
-
Converts the receiver to
TweakTradeValueobject.Declaration
Swift
func marshalToValue() -> TweakTradeValueReturn Value
The
TweakTradeValueobject that the receiver converts to.
View on GitHub
Tradable Protocol Reference