Crate moto

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 ════════════════════════════════════════════
  • 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§

Enums§

  • Supported line endings. Like in the Rust standard library, two line endings are supported: \r\n and \n
  • Describes where words occur in a line of text.
  • The WordSplitter enum describes where words can be split.
  • Describes how to wrap words into lines.

Constants§

Traits§

Functions§

Type Aliases§