Re-exports§
pub use console::*;
pub use constants::*;
pub use macros::*;
pub use text::*;
pub use random::*;
pub use lazy::*;
pub use moment::*;
pub use location::*;
pub use dot::*;
pub use config::*;
Modules§
Macros§
- ask_
date - ask_
datetime - ask_
datetime_ location - ask_
location - choice
- confirm
- divider
- Macro to print a divider with optional text and styles
- get
- get_or
- get_
or_ else - get_
or_ insert - hex
- hex! macro
- hexbg
- hexbg! macro to convert hex color to ansi background color example: hexbg!(#0099FF) -> “\x1b[48;2;0;99;255m\x1b[30m” example: hexbg!(#0099FF, 255) -> “\x1b[48;2;0;99;255m\x1b[30m” example: hexbg!(#0099FF, 255, 255, 255) -> “\x1b[48;2;0;99;255m\x1b[30m”
- lazy
- lazy_
arc - maybe
- number
- paragraph
- Macro to print a paragraph with a title and text The text is automatically wrapped to the max width
- progress_
bar - remove
- render
- Same as
show!
but returns a string instead of printing it - selection
- selection_
multi - set
- show
- show_
wrapped - same as
show!
but wraps the text to the max width (ascii formatting strings are excluded from character count to properly wrap text) e.g.show_wrapped!(green, "hello world", yellow, "this is a test", blue, "to make sure that the text is wrapped properly")
will wrap the text to the max width and print it in the specified colors ascii formatting strings are excluded from character count to properly wrap text - showln
- spinner
- text
- tree
- Macro to print a tree of the provided serializable object
- update