Unit Fun v0.7.0 UnitFun.Convertor protocol

Implementing this protocol definines a relationship into units. An example of this should be Pence and Pounds:

defimpl UnitFun.Convertor, for: Pence do
  def convert(_, Pounds, value), do: (value * 100)
end

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function convert(into_units, from_units, value)