[−][src]Struct bat::config::Config
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,