Crate vibrance

Crate vibrance 

Source
Expand description

Text colourisation library.

§Features

  • us - Adds the United States spelling of the names.

§Examples

use vibrance::{fg, bg, style};
println!("{}", fg::red("red " + style::bold("bold")));

Modules§

bg
Text background setting functions.
fg
Text foreground setting functions.
style
Text styling functions.

Structs§

ColouredString
An object representing pieces of text and formatting for each part.

Enums§

Formatting
An enum of constants representing the different formatting codes.

Traits§

Colourisable
Allows for formatting of a certain type. See src/traits/impls.rs for examples.