Crate minimo

source ·

Macros

  • Header macro
  • log! macro log!(“starting”,“server”); //prints “starting” and “server” in different colors automatically can handle any number of arguments and any type that implements Display. automatically colors the arguments in different colors based on number of arguments and words in the arguments eg. log!(“starting”,“server”) will print “starting” in yellow and “server” in white since starting is an ongoing action and server is a noun log!(“started”,“server”) will print “started” in green and “server” in white since started is a completed action and server is a noun log!(“starting”,“server”,“on”,“port”,“8080”) will print “starting” in yellow, “server” in white, “on” in gray, “port” in white and “8080” in cyan
  • paragraph! macro same like showln! but automatically chops the text and wraps it in a paragraph. the width of the paragraph is 65 characters by default. when the text is longer than 65 characters, it is wrapped in a paragraph
  • render! macro same like showln! but automatically chops the text and wraps it in a paragraph. the width of the paragraph is 65 characters by default. when the text is longer than 65 characters, it is wrapped in a paragraph

Structs

  • CStyleSequence a sequence of CStyle
  • ! # noui ! terminal ui library combining alot of things from here and there ! and making it slightly easier to play with ! below are the key functionalities provided by this library

Enums

  • Key a key that can be pressed

Constants

Traits

  • Pickable a trait that can be used to implement a pickable item
  • Printable

Functions