If I have a struct with some arbitrary values, how can I make a function, such that when I call “print” or “println” it will print the struct in the way I define?
Kind regards
If I have a struct with some arbitrary values, how can I make a function, such that when I call “print” or “println” it will print the struct in the way I define?
Kind regards
See the manual on custom pretty printing.
Thanks to both of you Works as I want now!
Kind regards