Serhii Potapov
Serhii Potapov
@atezet Btw, if you need only non empty vector, I recommend taking a look at `nonempty`: https://github.com/cloudhead/nonempty
The basics implementation to support generics is merged in https://github.com/greyblake/nutype/pull/135 There some corner cases that need to be addressed before a new version can be published, see [`generics`](https://github.com/greyblake/nutype/issues?q=is%3Aissue+is%3Aopen+label%3Agenerics) label. @atezet...
@atezet Hi, thanks for the feedback!
@atezet I just finished the work with generics and published `0.4.3-beta.1`. Let me know if that works for you. I am planning to release `0.4.3` in a week.
@atezet So in 0.4.3 it's possible to use generics and to set type bounds. However, to properly implement your use case it would require setting type bounds with `where` clause...
@atezet I've found a good solution for you. We can introduce a helping `IsEmpty` trait and with that workaround the limitation without cloning: ```rs use nutype::nutype; trait IsEmpty { fn...
@atezet No worries! Good luck with the sprint! Looking forward for any feedback from you, if you'll have any.
Hi, thanks for reporting the issue. Currently generics are not yet support, but I plan to add support for this. There is a related issue to this: https://github.com/greyblake/nutype/issues/130
The basics implementation to support generics is merged in https://github.com/greyblake/nutype/pull/135 There some corner cases that need to be addressed before a new version can be published, see [`generics`](https://github.com/greyblake/nutype/issues?q=is%3Aissue+is%3Aopen+label%3Agenerics) label. @Ducky2048...
@schneiderfelipe hi! > is there a way to build const values at present? Unfortunately no > Correct me if I'm wrong, but new_unchecked doesn't seem to be const either: You're...