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,
}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.
Trait Implementations§
Source§impl Clone for RenderOpts
impl Clone for RenderOpts
Source§fn clone(&self) -> RenderOpts
fn clone(&self) -> RenderOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenderOpts
impl Debug for RenderOpts
Auto Trait Implementations§
impl Freeze for RenderOpts
impl RefUnwindSafe for RenderOpts
impl Send for RenderOpts
impl Sync for RenderOpts
impl Unpin for RenderOpts
impl UnsafeUnpin for RenderOpts
impl UnwindSafe for RenderOpts
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