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

    value

    The trade value that the conversion performs from.

    Return Value

    The concrete type object.

  • Converts the receiver to TweakTradeValue object.

    Declaration

    Swift

    func marshalToValue() -> TweakTradeValue

    Return Value

    The TweakTradeValue object that the receiver converts to.