Multiplicable

public protocol Multiplicable

A type that defines a multiplication operator and multiplicative identity.

  • one

    The value for this type that represents the multiplicative identity zero. The result of x * Self.one should be x.

    Declaration

    Swift

    static var one: Self { get }
  • Multiplies two elements of this type.

    Declaration

    Swift

    static func * (lhs: Self, rhs: Self) -> Self