Closed apoorv569 closed 8 months ago
At the moment, the best you can achieve is (probably) to set your depth limit to 3 and to disable the separate_tuple_members
option. Unfortunately, ron does not offer more precise control over the formatting.
While a magic wrapper type could be added that sets a custom depth limit for a subtree of the RON document, this would probably be too specific to RON (unless there is already such a type in a general crate that other formats support and for which RON could implement support).
At the moment, the best you can achieve is (probably) to set your depth limit to 3 and to disable the
separate_tuple_members
option. Unfortunately, ron does not offer more precise control over the formatting.
This works! Thanks!
While a magic wrapper type could be added that sets a custom depth limit for a subtree of the RON document, this would probably be too specific to RON (unless there is already such a type in a general crate that other formats support and for which RON could implement support).
That would be nice to have though!
This this is my
PrettyConfig
,and my
ron
generated config looks like this,I want for each field to be on newline (
indented
) like thestruct
fields appear withrust
syntax.if I change
depth
to4
, its somewhat what I want,but I don't want each
arg
to be on a newline.. I want something more like this,Also is it possible to add
comments
and newlines manually?