Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Improving Rust compile times to enable adoption of memory safety. Parent comment
Basically yes. But that works with dynamic dispatch (trait objects) as well as static dispatch (generics).
> Not sure I understand.
A specific pattern I'd like to be able to represent is:
trait AlgorithmAInputData { ... } trait AlgorithmA { trait InputData = AlgorithmAInputData; ... } trait DataStorage<trait AlgorithmA> { type InputData : Algorithm::InputData; fn get_input_data() -> InputData; } fn compute_algorithm_a<Storage: DataStorage<AlgorithmA>>() { ... }
There are no comments on this comment yet.
Basically yes. But that works with dynamic dispatch (trait objects) as well as static dispatch (generics).
> Not sure I understand.
A specific pattern I'd like to be able to represent is: