NewType

public protocol NewType

Undocumented

  • Undocumented

    Declaration

    Swift

    associatedtype Value
  • Undocumented

    Declaration

    Swift

    var value: Value { get }
  • Undocumented

    Declaration

    Swift

    init(value: Value)
  • init(_:) Extension method

    Undocumented

    Declaration

    Swift

    public init(_ value: Value)

Available where Value: Equatable

  • ==(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func == (lhs: Self, rhs: Self) -> Bool

Available where Value: Hashable

  • hash(into:) Extension method

    Undocumented

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)

Available where Value: Comparable

  • <(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func < (lhs: Self, rhs: Self) -> Bool

Available where Value: ExpressibleByIntegerLiteral

  • init(integerLiteral:) Extension method

    Undocumented

    Declaration

    Swift

    public init(integerLiteral value: Value.IntegerLiteralType)

Available where Value: ExpressibleByFloatLiteral

  • init(floatLiteral:) Extension method

    Undocumented

    Declaration

    Swift

    public init(floatLiteral value: Value.FloatLiteralType)

Available where Value: ExpressibleByArrayLiteral, Value: RangeReplaceableCollection, Value.ArrayLiteralElement == Value.Element

  • init(arrayLiteral:) Extension method

    Undocumented

    Declaration

    Swift

    public init(arrayLiteral values: Value.ArrayLiteralElement...)

Available where Value: Numeric

  • magnitude Extension method

    Undocumented

    Declaration

    Swift

    public var magnitude: Value.Magnitude { get }
  • +(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func + (lhs: Self, rhs: Self) -> Self
  • +=(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func += (lhs: inout Self, rhs: Self)
  • -(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func - (lhs: Self, rhs: Self) -> Self
  • -=(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func -= (lhs: inout Self, rhs: Self)
  • *(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func * (lhs: Self, rhs: Self) -> Self
  • *=(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func *= (lhs: inout Self, rhs: Self)
  • init(exactly:) Extension method

    Undocumented

    Declaration

    Swift

    public init?<T>(exactly source: T) where T : BinaryInteger