FixedWidthInteger
extension FixedWidthInteger where Self: SignedInteger
extension FixedWidthInteger where Self: UnsignedInteger
-
Construct an instance of
Self
, if possible, from the specified scalar.Declaration
Swift
public static func construct(from scalar: Node.Scalar) -> Self?
Parameters
scalar
The
Node.Scalar
from which to extract a value of typeSelf
, if possible.Return Value
An instance of
Self
, if one was successfully extracted from the scalar.
-
Construct an instance of
Self
, if possible, from the specified scalar.Declaration
Swift
public static func construct(from scalar: Node.Scalar) -> Self?
Parameters
scalar
The
Node.Scalar
from which to extract a value of typeSelf
, if possible.Return Value
An instance of
Self
, if one was successfully extracted from the scalar.