Rust Display Lib

Helper functions for terminal displays

Contents:

This is a small collection of functions for displaying data on the console or returning Strings.
  1. shows
    Accepts either a String or &str instance, displays on console
  2. show
    Accepts &str message and generic T and displays them on console
  3. str_show
    Accepts &str message and generic T, formats and returns String
  4. show_value
    Accepts generic T and displays value on console
  5. show_value
    Accepts generic T, formats and returns String
  6. show_type
    Accepts generic T, displays type_name and size_of on console
  7. str_show_type
    Accepts generic T, formats type_name and size_of, returns String
  8. log
    Accepts generic T, displays type_name, size_of, and value on console
  9. str_log
    Accepts generic T, formats type_name, size_of, and value, returns String
  10. main_title
    Accepts &str, displays on console then underlines with '=' chars
  11. sub_title
    Accepts &str, displays on console then underlines with '-' chars
  12. putline
    displays single newline on console
  13. 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.