Skip to main content

rename_inline_key

Function rename_inline_key 

Source
pub fn rename_inline_key(t: &mut InlineTable, from: &str, to: &str) -> bool
Expand description

Rename a key in an inline table, keeping its place and its decor.

The same rebuild rename_key does, for the same reason: there is no rename, and re-inserting would move the key to the end of a line somebody wrote in an order they chose.