use derive_tools::IndexMut; #[ derive( IndexMut ) ] struct StructUnit; fn main() { }