Unitful: how to restrict units to specific dimension

f1(unit::Unitful.LengthUnits) = unit
1 Like