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
Is it possible to remove unused lookup tables if the lookups are known at compile time? For example, if I have a map full of values but a user of a library only needs one or two values out of it.
I am not sure if Rust is capable of doing this. I think storing the return type inside a const variable would do the trick, as it would move the data into the user's application, but that would mean that get had to be const as well.
The text was updated successfully, but these errors were encountered:
Is it possible to remove unused lookup tables if the lookups are known at compile time? For example, if I have a map full of values but a user of a library only needs one or two values out of it.
I am not sure if Rust is capable of doing this. I think storing the return type inside a const variable would do the trick, as it would move the data into the user's application, but that would mean that get had to be const as well.
The text was updated successfully, but these errors were encountered: