It would be nice to be able to return a String. That allows for example to transfer over a network or include a log file.
It seems relatively staightforward to use format!() instead and allow this additional method. The issue might be more a consistent API pattern (display() vs display_string() etc) across the library for similiar situations.
Chart::display()
output directly withprintln!()
It would be nice to be able to return a String. That allows for example to transfer over a network or include a log file.
It seems relatively staightforward to use
format!()
instead and allow this additional method. The issue might be more a consistent API pattern (display()
vsdisplay_string() etc
) across the library for similiar situations.