pub struct PrettyPrinter { /* private fields */ }
Expand description

Builder for PrettyPrint.

Implementations

Language for syntax highlighting

Whether or not to show/replace non-printable characters like space, tab and newline.

The character width of the terminal

The width of tab characters. Currently, a value of 0 will cause tabs to be passed through without expanding them.

Whether or not to simply loop through all input (cat mode)

Whether or not the output should be colorized

Whether or not the output terminal supports true color

Print grid

Print header with output file name

Print line numbers

Text wrapping mode

Pager or STDOUT

Specifies the lines that should be printed

The syntax highlighting theme

File extension/name mappings

Command to start the pager

Whether to print some characters using italics

Builds a new PrettyPrint.

Errors

If a required field has not been initialized.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.