There is a popular c++ application of the chain-of-responsibility design pattern using static "maker" objects linked into a list during the static initialization phase. E.g. https://github.com/alex4747-pub/simple_init_chain.
I would like to use the same pattern in Rust. Is it possible?
Update: found the ctor library in Rust, it seems like it could be used for this purpose https://docs.rs/ctor/latest/ctor/