Make the struct attribute private, and export two new methods. A getter, active_color(), and a setter, set_active_color(). Update all references to the attribute to use the methods. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |
Make the struct attribute private, and export two new methods. A getter, active_color(), and a setter, set_active_color(). Update all references to the attribute to use the methods. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |