Open
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.
<
4B36
div class="CommentLoading-module__CommentLoadingContent--nb4e3">