pub struct PagerOptions {
pub styles: bool,
}Expand description
Options for the pager context.
Fields§
§styles: boolWhether to preserve ANSI styles in pager output.
Implementations§
Source§impl PagerOptions
impl PagerOptions
Sourcepub fn with_styles(self, styles: bool) -> Self
pub fn with_styles(self, styles: bool) -> Self
Enable or disable styles in pager output.
Trait Implementations§
Source§impl Clone for PagerOptions
impl Clone for PagerOptions
Source§fn clone(&self) -> PagerOptions
fn clone(&self) -> PagerOptions
Returns a duplicate 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 PagerOptions
impl Debug for PagerOptions
Source§impl Default for PagerOptions
impl Default for PagerOptions
Source§fn default() -> PagerOptions
fn default() -> PagerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PagerOptions
impl RefUnwindSafe for PagerOptions
impl Send for PagerOptions
impl Sync for PagerOptions
impl Unpin for PagerOptions
impl UnwindSafe for PagerOptions
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