Replies: 1 comment 1 reply
-
If you look at HashMap, you can't edit keys in-place. You have to remove the entry and insert a new one. The same for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am in the process of mutably traversing a TOML file using toml_edit. When I come across a key that I need to change I am not able to change the key's value even though the key is of type
KeyMut
. The key cannot be changed because the property is not public and I can't seem to find any methods that allow me to mutate its value. As an example, let's say that I have the following in my toml file:In this example, I want to change the
eth0
key toenp0s2
. Is it possible to do this using thetoml_edit
crate?Beta Was this translation helpful? Give feedback.
All reactions