• exussum@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    This makes me want to write a function for you to add to numbers where the variables are leftumber and rightnumber, instead of x and y.

    • Turun@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Implementing add (and other math operations) in rust for your types has the type signature self and rhs (right hand side).