An implementation for a &dyn [Trait]
-like reference, inspired by a Reddit thread.
sh
cargo add dyn-slice
dyn-slice on crates.io
dyn-slice on GitHub
DO NOT USE THIS IN PRODUCTION (or any important) CODE: IT IS A PROOF OF CONCEPT AND PROBABLY HAS A FEW BUGS.
With that said, feel free to use it in code that does not have to be reliable and to send pull requests to fix some of the bugs.
Dyn-Slice is dual-licensed under either the Apache License Version 2.0 or MIT license at your option.