Struct pygmentize::Terminal256Formatter
source · pub struct Terminal256Formatter {
pub line_numbers: bool,
}
Expand description
Format tokens with ANSI color sequences, for output in a 256-color
terminal or console. Like in TerminalFormatter
color sequences are
terminated at newlines, so that paging the output works correctly.
See https://pygments.org/docs/formatters/#Terminal256Formatter for more information.
Fields§
§line_numbers: bool
Output line numbers.
Implementations§
Trait Implementations§
source§impl Clone for Terminal256Formatter
impl Clone for Terminal256Formatter
source§fn clone(&self) -> Terminal256Formatter
fn clone(&self) -> Terminal256Formatter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Terminal256Formatter
impl Debug for Terminal256Formatter
source§impl Default for Terminal256Formatter
impl Default for Terminal256Formatter
Auto Trait Implementations§
impl RefUnwindSafe for Terminal256Formatter
impl Send for Terminal256Formatter
impl Sync for Terminal256Formatter
impl Unpin for Terminal256Formatter
impl UnwindSafe for Terminal256Formatter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more