makeit
makeit copied to clipboard
Provide method to reassign to already set field
Currently the only way to reassign an already initialized field is through a mutable pointer, under the assumption that assigning to the same field multiple times is a mistake, but for some use-cases, like writing tests this is a useful feature and not a mistake. Provide a separate method to set_foo as a way to make the users' intention clearer.