-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Labels
A-editArea: TOML editing APIArea: TOML editing APIC-questionUncertainty is involvedUncertainty is involvedM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.Meta: Implementing or merging this will introduce a breaking change.
Description
Right now, we have
Value::*
which isFormatted
which hasDecor
andRepr
Array
which hasDecor
andSpan
InlineTable
which hasDecor
andSpan
Key
which has twoDecor
s andRepr
This makes it annoying for operating on a Value
s decor because you have to handle every case differently. This also requires manual work to maintain the Decor
when changing a Value
.
Could have a pub Decoration
type and pub Decorated<T>
?
Would love to do something similar for Repr
but we have to make sure that gets deleted when a Value
is overwritten.
Metadata
Metadata
Assignees
Labels
A-editArea: TOML editing APIArea: TOML editing APIC-questionUncertainty is involvedUncertainty is involvedM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.Meta: Implementing or merging this will introduce a breaking change.