@AstraKernel a good way to setup default parameters in rust is by creating a params struct and impl default for it. Then call `..Default::default()` at the end of the params construction

https://stackoverflow.com/questions/19650265/is-there-a-faster-shorter-way-to-initialize-variables-in-a-rust-struct

Is there a faster/shorter way to initialize variables in a Rust struct?

In the following example, I would much prefer to assign a value to each field in the struct in the declaration of the fields. Alternatively, it effectively takes one additional statement for each f...

Stack Overflow