quark-zju / gcmodule

Garbage collection for Rust inspired by CPython's gcmodule
MIT License
20 stars 5 forks source link

remove as_any() #7

Closed mio-19 closed 4 years ago

mio-19 commented 4 years ago

as_any() isn't about GC. Trace + Any can be used instead.

quark-zju commented 4 years ago

Thanks for the suggestion. I will think about it.

The as_any() API didn't exist initially. I had a higher level trait AbstractValue for as_any(). However then Cc<dyn AbstractValue> does not implement Trace. It might be not an issue, though.