Crate minimo

source ·

Re-exports§

Modules§

Macros§

  • choice! macro
  • divider! macro prints a divider as per max width while also allowing to set text left center or right. can print curved box drawing characters like ╭,╮,╰,╯,┌,┐,└,┘,├,┤,┬,┴,┼ e.g. divider!() => ───────────────────────────────────────────────────────────── e.g. divider!("hello",-) => ─ hello ───────────────────────────────────────────────────── e.g. divider!(-,"hello") => ───────────────────────────────────────────────────── hello ─ e.g. divider!(-,"hello",-) => ─────────────────────────── hello ─────────────────────────── e.g. divider!(-,"hello",-,"world",-) => ─ hello ─ world ───────────────────────────────────────────── e.g. divider!(/,"hello",-) => ╭─ hello ──────────────────────────────────────────────────── e.g. divider!(\,"hello",-) => ╰─ hello ──────────────────────────────────────────────────── e.g. divider!(/,"hello",\) => ╭─ hello ───────────────────────────────────────────────────╮ e.g. divider!(\,"hello",\) => ╰─ hello ───────────────────────────────────────────────────╮ e.g. divider!(\,"hello",/) => ╰─ hello ───────────────────────────────────────────────────╯ e.g. divider!(-,/) => ────────────────────────────────────────────────────────────╯ e.g. divider!(/,-) => ╭─────────────────────────────────────────────────────────── e.g. divider!(\,-) => ╰─────────────────────────────────────────────────────────── e.g. divider!(\,-,/) => ╰───────────────────────────────────────────────────────────╯ e.g. divider!(=,"hello") => ════════════════════════════════════════════════════ hello ═ e.g. divider!(=,"hello",=) => ═════════════════════════ hello ════════════════════════════ e.g. divider!(=,"hello",=,"world",=) => ═ hello ═ world ════════════════════════════════════════════
  • hex! macro to convert hex color to ansi color example: hex!(#FF0000) -> “\x1b[38;2;255;0;0m”
  • hexbg! macro to convert hex color to ansi background color example: hexbg!(#FF0000) -> “\x1b[48;2;255;0;0m\x1b[30m” example: hexbg!(#FF0000, 255) -> “\x1b[48;2;255;0;0m\x1b[30m” example: hexbg!(#FF0000, 255, 255, 255) -> “\x1b[48;2;255;0;0m\x1b[30m”
  • paragraph! macro prints a paragraph with a title and text the text is automatically wrapped to the max width as per the max width set
  • render!
  • selection! macro
  • tree! macro prints a tree of the provided serializable object eg. tree!(json!({“hello”:“world”})) prints:

Structs§

  • An object providing access to an open file on the filesystem.
  • A hash map implemented with quadratic probing and SIMD lookup.

Traits§

  • A data structure that can be deserialized from any data format supported by Serde.
  • A data structure that can be serialized into any data format supported by Serde.

Derive Macros§