Crate facet_pretty

Source
Expand description

§facet-pretty

experimental free of syn crates.io documentation MIT/Apache-2.0 licensed

Thanks to all individual and corporate sponsors, without whom this work could not exist:

Ko-fi GitHub Sponsors Patreon           Zed

Provides pretty-printing capabilities for Facet types.

§License

Licensed under either of:

at your option.

Structs§

ColorGenerator
A color generator that produces unique colors based on a hash value
PrettyDisplay
Display wrapper for any type that implements Facet
PrettyPrinter
A formatter for pretty-printing Facet types
RGB
RGB color representation

Constants§

BOLD
ANSI bold formatting code
DIM
ANSI dim formatting code
RESET
ANSI reset code

Traits§

FacetPretty
Extension trait for Facet types to easily pretty-print them

Functions§

write_bold
Write ANSI bold formatting to the formatter
write_dim
Write ANSI dim formatting to the formatter
write_italic
Write ANSI italic formatting to the formatter
write_reset
Write ANSI reset code to the formatter
write_rgb
Write RGB foreground color code to the formatter
write_rgb_bg
Write RGB background color code to the formatter
write_underline
Write ANSI underline formatting to the formatter