3 ms·
I think what you're looking for is std::any; https://doc.rust-lang.org/std/any/index.html https://doc.rust-lang.org/std/any/index.html The example there includ
by dwattttt 2y ago
I think what you're looking for is std::any; https://doc.rust-lang.org/std/any/index.html https://doc.rust-lang.org/std/any/index.html
The example there includes a function that takes Any + Debug, tries to downcast to a String, and if that succeeds it logs the string length