FixedWidthInteger

extension FixedWidthInteger where Self: SignedInteger
extension FixedWidthInteger where Self: UnsignedInteger

Available where Self: SignedInteger

  • 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 type Self, if possible.

    Return Value

    An instance of Self, if one was successfully extracted from the scalar.

Available 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 type Self, if possible.

    Return Value

    An instance of Self, if one was successfully extracted from the scalar.