[−][src]Function toml_edit::decorated
pub fn decorated(value: Value, prefix: &str, suffix: &str) -> Value
Sets the prefix and the suffix for value.
Example
let mut v = toml_edit::Value::from(42); assert_eq!(&v.to_string(), "42"); let d = toml_edit::decorated(v, " ", " "); assert_eq!(&d.to_string(), " 42 ");