Skip to main content

Crate flyleaf_core

Crate flyleaf_core 

Source
Expand description

The document behind Tommy Flyleaf: a TOML file edited as a tree, with its comments, key order and formatting kept for everything that was not edited.

No user interface. Everything here is an operation on a toml_edit document that the widget in flyleaf asks for and never performs itself, so that there is one place a change goes through.

Re-exports§

pub use toml_edit;

Enums§

NewKey
What a new key starts as.

Functions§

add_inline_key
Add a key to an inline table.
add_key
Add a key to a table.
remove_inline_key
Remove a key from an inline table.
remove_key
Remove a key, and everything under it where it is a table.
rename_inline_key
Rename a key in an inline table, keeping its place and its decor.
rename_key
Rename a key, keeping its place in the document and the decor it carried.
set_value
Change a value, keeping the decor it was written with.