glm_stackable_config
Types
Values
pub const const_base_path: String
pub fn merge(
old: dict.Dict(String, tom.Toml),
new: dict.Dict(String, tom.Toml),
) -> dict.Dict(String, tom.Toml)
merge old and new dictionaries with the following custom rules:
Tables are merged recursively. Arrays are appended, including ArrayOfTables.
pub fn rebase(
old: dict.Dict(String, tom.Toml),
new: dict.Dict(String, tom.Toml),
) -> Result(dict.Dict(String, tom.Toml), StackableError)
Walk the ‘new’ graph and search for any tables with a key=“base” with a String value. If found, then the ‘old’ graph is searched for a matching Table. If one is found, then the ‘new’ table is merged onto the ‘old’ table, creating a new ‘rebased’ table.