RepoRust_RustDisplayLib.html
copyright © James Fawcett
Revised: 11/06/2025
Contents:
This is a small collection of functions for displaying data on the console or returning Strings.
-
shows
Accepts either a String or &str instance, displays on console
-
show
Accepts &str message and generic T and displays them on console
-
str_show
Accepts &str message and generic T, formats and returns String
-
show_value
Accepts generic T and displays value on console
-
show_value
Accepts generic T, formats and returns String
-
show_type
Accepts generic T, displays type_name and size_of on console
-
str_show_type
Accepts generic T, formats type_name and size_of, returns String
-
log
Accepts generic T, displays type_name, size_of, and value on console
-
str_log
Accepts generic T, formats type_name, size_of, and value, returns String
-
main_title
Accepts &str, displays on console then underlines with '=' chars
-
sub_title
Accepts &str, displays on console then underlines with '-' chars
-
putline
displays single newline on console
-
putlinen
displays n newlines on console
Build:
This Rust code was built with Cargo from Visual Studio Code terminal and tested on Windows 10.
Status:
There may be a few additions, but I expect this will remain a small code set.