pub struct RenderOpts {
pub tab_width: u8,
pub wrap: bool,
pub cols: u16,
pub mode: AnsiMode,
pub rscroll_char: Option<char>,
pub word_wrap: bool,
pub left_col: usize,
pub tab_stops: Option<Vec<usize>>,
}Fields§
§tab_width: u8§wrap: bool§cols: u16§mode: AnsiMode§rscroll_char: Option<char>In chop mode, when a line overflows the right edge, replace the
last cell with this character to signal “more content right”.
None disables the marker. Matches less’s --rscroll=c.
word_wrap: boolIn wrap mode, break lines on whitespace boundaries instead of
mid-character when possible. Falls back to mid-character break
when no whitespace fits in the row. Matches less’s --wordwrap.
left_col: usizeHorizontal scroll offset in display columns. Only honored in chop mode
(wrap == false); the first left_col columns of each line are skipped
before emitting up to cols cells. Ignored in wrap mode. Default 0.
tab_stops: Option<Vec<usize>>Explicit tab-stop columns (sorted, ascending, from --tabs). When
Some, overrides the uniform tab_width: tabs advance to the next
listed column; past the final stop the last interval repeats. None
uses uniform tab_width spacing.
Trait Implementations§
Source§impl Clone for RenderOpts
impl Clone for RenderOpts
Source§fn clone(&self) -> RenderOpts
fn clone(&self) -> RenderOpts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more