UnitImpl.opBinary

Multiplication/division of two unit instances, yielding a unit instance representing the product/quotient unit.

  1. auto opBinary(Rhs rhs)
  2. auto opBinary(Rhs rhs)
    mixintemplate UnitImpl()
    opBinary
    (
    string op : "/"
    Rhs
    )
    (
    Rhs rhs
    )
    if (
    isUnit!Rhs
    )
  3. auto opBinary(V rhs)
  4. auto opBinary(V rhs)

Examples

enum joule = newton * metre;
enum watt = joule / second;

Meta