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
At the moment we assume a traditional arithmetic over u32.
Instead we should define a Number trait and allow the user to specify the number system they are using. Additionally we can provide implementations of common number systems.
traitNumber{fnop(&self,op:Operation,rhs:&Self) -> Self;// note: we may want to separate this as prefix_op, infix_op, but that's a separate issue}
then anything implementing this trait can be used by using it as the constraint on a generic, like this:
At the moment we assume a traditional arithmetic over u32.
Instead we should define a
Number
trait and allow the user to specify the number system they are using. Additionally we can provide implementations of common number systems.then anything implementing this trait can be used by using it as the constraint on a generic, like this:
The text was updated successfully, but these errors were encountered: