[][src]Crate spectrum

Macros

emit
emitln

Structs

Attribute
EmitBackend
EmitColored
EmitForTest
EmitPlain
Style
StyledFragment

A StyledFragment is a concrete value that represents an implementation of StyledFragmentTrait.

StyledLine

A StyledLine is a list of StyledFragments, intended to be laid out on a single line

StyledNewline
StyledString

A StyledString is the simplest implementation of StyledFragment, holding a String and a Style.

Enums

Color

A terminal color.

EmitError

Traits

EmitBackendTrait

An implementation of EmitBackendTrait takes a piece of styled text and emits it into the supplied std::fmt::Formatter.

StyledFragmentTrait

A StyledFragmentTrait represents a fragment of content that can be emitted into an output stream (through an EmitBackend).

ToStyledString

Functions

write_into

Type Definitions

EmitResult