[][src]Struct bat::config::Config

pub struct Config<'a> {
    pub language: Option<&'a str>,
    pub show_nonprintable: bool,
    pub term_width: usize,
    pub tab_width: usize,
    pub loop_through: bool,
    pub colored_output: bool,
    pub true_color: bool,
    pub style_components: StyleComponents,
    pub wrapping_mode: WrappingMode,
    pub paging_mode: PagingMode,
    pub visible_lines: VisibleLines,
    pub theme: String,
    pub syntax_mapping: SyntaxMapping<'a>,
    pub pager: Option<&'a str>,
    pub use_italic_text: bool,
    pub highlighted_lines: HighlightedLineRanges,
}

Fields

language: Option<&'a str>

The explicitly configured language, if any

show_nonprintable: bool

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

term_width: usize

The character width of the terminal

tab_width: usize

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

loop_through: bool

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

colored_output: bool

Whether or not the output should be colorized

true_color: bool

Whether or not the output terminal supports true color

style_components: StyleComponents

Style elements (grid, line numbers, ...)

wrapping_mode: WrappingMode

If and how text should be wrapped

paging_mode: PagingMode

Pager or STDOUT

visible_lines: VisibleLines

Specifies which lines should be printed

theme: String

The syntax highlighting theme

syntax_mapping: SyntaxMapping<'a>

File extension/name mappings

pager: Option<&'a str>

Command to start the pager

use_italic_text: bool

Whether or not to use ANSI italics

highlighted_lines: HighlightedLineRanges

Ranges of lines which should be highlighted with a special background color

Trait Implementations

impl<'a> Clone for Config<'a>[src]

impl<'a> Debug for Config<'a>[src]

impl<'a> Default for Config<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Config<'a>

impl<'a> Send for Config<'a>

impl<'a> Sync for Config<'a>

impl<'a> Unpin for Config<'a>

impl<'a> UnwindSafe for Config<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.