Currently constants are represented as const ?_<TYPE> in the code as we are not evaluating their value.
There should be the ability to call some rust functions to decode these constants. Perhaps there will need to be some use of rust_internal or the query system. Perhaps all constants cannot be easily represented but we should be able to get things like integers to work without too much challenge hopefully.