ModularM
Modular2y ago
6 replies
tkeitt

Parameterized function definitions in traits

Is this possible?
trait X:
  fn x[Y: AnyType](self, y: Y) -> Y:
    pass
Was this page helpful?