Decimal
extension Decimal: ScalarConstructible
extension Decimal: ScalarRepresentable
extension Decimal: YAMLEncodable
-
Construct an instance of
Decimal, if possible, from the specified scalar.Declaration
Swift
public static func construct(from scalar: Node.Scalar) -> Decimal?Parameters
scalarThe
Node.Scalarfrom which to extract a value of typeDecimal, if possible.Return Value
An instance of
Decimal, if one was successfully extracted from the scalar.
-
This value’s
Node.scalarrepresentation.Declaration
Swift
public func represented() -> Node.Scalar
View on GitHub
Install in Dash