• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by John Dev


28 Nov, 2024

Updated at 12 Dec, 2024

Correct way to write it?

Hi,
Here is the playground.

If fn prepare actually used the fields from struct A (A still can accept different values type for its members), is it possible to minimize the typing for the generic parameters of say <u16, u16>, in MyTrait<u16, u16> for A<u16, u16> ?

Thanks

2 posts - 2 participants

Read full topic