Comments (2)
What this is hiding is that this isn't DocumentMut::decor_mut
but Table::decor_mut
that is being accessed due to a convenience Deref
.
I don't think I'm against this. I'm also curious about collapsing trailing
into the suffix. I'm not sure why that wasn't done before.
from toml.
We did run into the same issue today (what a coincidence).
For now we only wanted to add a document wide header and probably going to resort to prepending it to the first item in the document, though adding it to the document directly would definitely be more ergonomic.
from toml.
Related Issues (20)
- Multi-line k/v pairs HOT 1
- Serialization of keys varies depending on whether the feature flag "parse" is enabled
- Array of Tables `remove` does not return the removed table
- Implement `From<inner type>` for `Item`
- Feature proposal: Type-safe decor mutation API HOT 1
- Allow to create `Decor` instances with optional prefix or suffix
- How to serialize/deserialize while preserving formats with `toml_edit`? HOT 3
- [Bug] `de::from_str` has overly strict generic restrictions. HOT 1
- How to use `Spanned` HOT 1
- Missing output on `or_insert()`ing on a nested `Item::None` table HOT 3
- Function for inserting table key at ordinal in a `TableLike` HOT 1
- Bad span with untagged enum HOT 1
- Table::try_into / Value::try_into not working HOT 6
- Uneeded escapes with multiline string character escapes HOT 7
- Allow setting key's representation HOT 2
- Feature Request: get raw repr of key/value when deserializing HOT 5
- `toml_edit`: value is not written if table is constructed beforehand HOT 5
- Implement `Serialize` and `Deserialize` for `Date` and `Time` HOT 1
- Differentiating syntax from schema errors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toml.