loading...

re: Callbacks, Trait Objects & Associated Types, Oh My! VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It's posible it all just means I need to refactor. Ideally I'd like to create a separate Clickable trait, but I'm not sure how to check for a tra...

Just realized I've yet looked at how to do that. Seems std::any::Any is the current solution.

But you're right, I suspect there's more Rust-y way to implement things.

Yeah, I came across that too and played with it a little, but never found anything that didn't feel similarly kludgy. I don't really want to forfeit type checking, seems like a deeper structural change is likely in order.

code of conduct - report abuse