Expand description
Modules§
Macros§
- format
allocandmacros - Create a
stylish::Stringusing interpolation of runtime elements. - format_
args macros - Constructs parameters for the other string-formatting macros.
- write
- Writes attributed and formatted data into a buffer.
- writeln
- Write attributed and formatted data into a buffer, with a newline appended.
Structs§
- Arguments
- A precompiled version of a format string and its by-reference arguments.
- Background
- A
Restyleimplementor for settingStyle::background. - Error
- The error type which is returned from formatting a message into a stream.
- Foreground
- A
Restyleimplementor for settingStyle::foreground. - Formatter
- A configured output stream.
- String
alloc - An attributed version of
alloc::string::Stringwhich has a specificStyleassociated with each character. - Style
- A style to render text with, setting the foreground and background colors, along with intensity.
- Style
Diff - A diff between two styles.
Enums§
- Color
- A color that can be used with
Foregroundto modifyStyle::foregroundorBackgroundto modifyStyle::background. - Intensity
- An intensity to render text with, to emphasise or de-emphasise it as needed.
Traits§
- Display
- Format trait for the
stylishformat,{:s}. - Restyle
- A trait for modifications to
Style, allowing an ergonomic API withStyle::withandstylish::Formatter::with. - ToStylish
String allocandmacros - A trait for converting a value to a
stylish::String. - Write
- A trait for writing or formatting into attributed Unicode-accepting buffers or streams.
Functions§
- format
alloc - The
formatfunction takes astylish::Argumentsstruct and returns the resulting attributed and formattedstylish::String.
Type Aliases§
- Result
- The type returned by formatter methods.