Skip to main content

PagerStyle

Struct PagerStyle 

Source
pub struct PagerStyle<'a> {
    pub quote_re: &'a Regex,
    pub markers: bool,
    pub smart_wrap: bool,
}
Expand description

The pager display: header block, separator, wrapped body (with mutt’s + continuation markers), each row classified for coloring. The scroll math, the body search, and the drawing all share this; T (hide_quoted) drops quoted rows here, so every consumer agrees on what a line number means. What the config says about drawing a message: which lines count as quoted, whether a wrapped line is marked, and whether it breaks at a word.

Fields§

§quote_re: &'a Regex§markers: bool

mutt’s $markers.

§smart_wrap: bool

mutt’s $smart_wrap.

Implementations§

Source§

impl<'a> PagerStyle<'a>

Source

pub fn of(config: &'a Config, quote_re: &'a Regex) -> Self

Auto Trait Implementations§

§

impl<'a> Freeze for PagerStyle<'a>

§

impl<'a> RefUnwindSafe for PagerStyle<'a>

§

impl<'a> Send for PagerStyle<'a>

§

impl<'a> Sync for PagerStyle<'a>

§

impl<'a> Unpin for PagerStyle<'a>

§

impl<'a> UnsafeUnpin for PagerStyle<'a>

§

impl<'a> UnwindSafe for PagerStyle<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.