CustomSignalValue
public struct CustomSignalValue
extension CustomSignalValue: ExpressibleByStringInterpolation
extension CustomSignalValue: ExpressibleByIntegerLiteral
extension CustomSignalValue: ExpressibleByFloatLiteral
Represents a value associated with a key in a custom signal, restricted to the allowed data types : String, Int, Double.
-
Returns a string backed custom signal.
Declaration
Swift
public static func string(_ string: String) -> CustomSignalValue
Parameters
string
The given string to back the custom signal with.
Return Value
A string backed custom signal.
-
Returns an integer backed custom signal.
Declaration
Swift
public static func integer(_ integer: Int) -> CustomSignalValue
Parameters
integer
The given integer to back the custom signal with.
Return Value
An integer backed custom signal.
-
Returns an floating-point backed custom signal.
Declaration
Swift
public static func double(_ double: Double) -> CustomSignalValue
Parameters
double
The given floating-point value to back the custom signal with.
Return Value
An floating-point backed custom signal
-
Declaration
Swift
public init(stringLiteral value: String)
-
Declaration
Swift
public init(integerLiteral value: Int)
-
Declaration
Swift
public init(floatLiteral value: Double)