Skip to main content

Pager

Struct Pager 

Source
pub struct Pager {
Show 16 fields pub index_lines: u16, pub context: usize, pub search_context: usize, pub html: Option<String>, pub quote_regexp: Option<String>, pub ignore: Option<Vec<String>>, pub unignore: Option<Vec<String>>, pub hdr_order: Option<Vec<String>>, pub format: Option<String>, pub wrap: Option<i64>, pub tilde: bool, pub pager_stop: bool, pub markers: Option<bool>, pub smart_wrap: Option<bool>, pub reflow_text: Option<bool>, pub alternative_order: Vec<String>,
}

Fields§

§index_lines: u16

Lines of the message index kept visible above the pager.

§context: usize

Lines of overlap when paging (mutt’s pager_context).

§search_context: usize

mutt’s $search_context: lines of context kept above a pager search hit scrolled toward the top. Default 0.

§html: Option<String>

text/html with no auto_view filter renders through the built-in html-to-text (not mutt’s; links keep their targets, blockquotes become > ). "raw" restores mutt’s literal source view.

§quote_regexp: Option<String>

mutt’s $quote_regexp: classifies quoted body lines (depth = quote characters in the match). Default ^([ \t]*[|>:}#])+.

§ignore: Option<Vec<String>>

mutt’s ignore list: header-name prefixes hidden from the brief view (* = all). Unset keeps the classic view (everything hidden except Date/From/To/Cc/Subject).

§unignore: Option<Vec<String>>

mutt’s unignore list: prefixes shown even when ignored.

§hdr_order: Option<Vec<String>>

mutt’s hdr_order: name prefixes sorting the brief view; unlisted headers follow in message order.

§format: Option<String>

mutt’s $pager_format for the pager’s bottom line; the default reproduces the classic “—Message n/m: subject – NN%”.

§wrap: Option<i64>

mutt’s $wrap: wrap body text at N columns (negative = a right margin of |N|); unset wraps at the window width.

§tilde: bool

mutt’s $tilde: pad the rows below end-of-message with ~.

§pager_stop: bool

mutt’s $pager_stop: paging past the end of a message stays put instead of opening the next one.

§markers: Option<bool>

mutt’s $markers (default true, as in mutt): the + at the start of a wrapped continuation line.

§smart_wrap: Option<bool>

mutt’s $smart_wrap (default true, as in mutt): wrapped lines break at a word boundary rather than at the column.

§reflow_text: Option<bool>

mutt’s $reflow_text (default true): a format=flowed part is put back into paragraphs and wrapped at the display width instead of keeping the sender’s line breaks.

§alternative_order: Vec<String>

mutt’s alternative_order: MIME types, most wanted first, that decide which part of a multipart/alternative shows. text/* wildcards allowed; consulted before the auto_view filters and the built-in text ranking.

Trait Implementations§

Source§

impl Clone for Pager

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pager

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Pager

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Pager
where Pager: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Freeze for Pager

§

impl RefUnwindSafe for Pager

§

impl Send for Pager

§

impl Sync for Pager

§

impl Unpin for Pager

§

impl UnsafeUnpin for Pager

§

impl UnwindSafe for Pager

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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, !>

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.