[][src]Module glerminal::text_processing

Text Processor is a trait that can be used in places where processing text may be necessary, for example if using a parser is optional.

Using the DefaultProcessor without intent on using any other TextProcessors, is very inefficient compared to just using write.

Structs

DefaultProcessor

The default processor that does nothing else, but take the text and apply the given style to each of those chars

ProcessedChar

A char that has been processed by a TextProcessor. Contains the char and it's style

Enums

Processable

A string that can be given for a TextProcessor.

Traits

TextProcessor

A text processor that can take text, a style, and process them to produce some kind of output.