Crate stylish_core
source · [−]Expand description
Modules
Macros
alloc
and macros
Create a stylish::String
using interpolation of runtime elements.
macros
Constructs parameters for the other string-formatting macros.
Writes attributed and formatted data into a buffer.
Write attributed and formatted data into a buffer, with a newline appended.
Structs
A precompiled version of a format string and its by-reference arguments.
A Restyle
implementor for setting Style::background
.
The error type which is returned from formatting a message into a stream.
A Restyle
implementor for setting Style::foreground
.
A configured output stream.
alloc
An attributed version of alloc::string::String
which has a specific
Style
associated with each character.
A style to render text with, setting the foreground and background colors, along with intensity.
A diff between two styles.
Enums
A color that can be used with Foreground
to modify Style::foreground
or Background
to modify Style::background
.
An intensity to render text with, to emphasise or de-emphasise it as needed.
Traits
Format trait for the stylish
format,
{:s}
.
A trait for modifications to Style
, allowing an ergonomic API with
Style::with
and stylish::Formatter::with
.
alloc
and macros
A trait for converting a value to a stylish::String
.
A trait for writing or formatting into attributed Unicode-accepting buffers or streams.
Functions
alloc
The format
function takes a stylish::Arguments
struct and returns the
resulting attributed and formatted stylish::String
.
Type Definitions
The type returned by formatter methods.