You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even better would be is to add T: TryGetable in the impl<T: TryGetable> ... block, like rust does with Clone, Debug and etc, so it would require the type to implement trait only if somebody actually uses fromqueryresult functions
The text was updated successfully, but these errors were encountered:
Our use case is that we calculating different statistical values, and they could have different types (int, float or decimal).
The result type has the same structure - date and value.
So currently we have three structs, and I've came to idea to make it generic
Motivation
It seems that there should be no problem to write something like
And then use it something like this
I've tried doing that, and it seems like macro does not support it right now
Proposed Solutions
Add support to the macro
Even better would be is to add
T: TryGetable
in theimpl<T: TryGetable> ...
block, like rust does withClone, Debug
and etc, so it would require the type to implement trait only if somebody actually uses fromqueryresult functionsThe text was updated successfully, but these errors were encountered: