3 ms·
How does that contradict what the post says? A trait object (the boxed fn in your example) is used for dynamic dispatch. OP says "can also be used". It sure lo
by leshow 10y ago
How does that contradict what the post says? A trait object (the boxed fn in your example) is used for dynamic dispatch.
OP says "can also be used". It sure looks like the Fn trait is being used for dynamic dispatch in that example.
- khuey 10y agoHe's objecting to the "in practice rarely useful" bit.