When outputting this on a small screen, this is the result:
I would like to keep the part 1x and 25,90 on the same height in the output. And the part `Pizza Margherita (Small) should be broken down in parts to fit in the small screen.
That sort of layout isn't something format! (or any of the formatting code in the standard library) is capable of. Given that what you're describing is sensitive to the terminal width, you might want to search for "terminal tables" libraries on crates.io, or possible look into a Text User Interface library.[1]
I can't give any recommendations because the last time I needed something in this vein, I got so frustrated with the options I could find that I ended up pitching a fit and writing my own. ↩︎
In that case, you want the support libraries and algorithms that go into building a Text User Interface. Try picking one with an appropriate license and scanning its parts.