Skip to content

How to format the array in expanded style? #587

Discussion options

You must be logged in to vote

An API that might make this easier is visit_mut.

For what calls to make, I'd recommend parsing and doing a debug dump of your desired format and that should give you an idea of what parts of the API on which entries you need to edit to get the desired result.

Thank you. However, I have discovered that this approach complicates things. Instead, I have found an alternative solution:

array.push_formatted(x.decorated("\n\t", ""));

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AurevoirXavier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants