pub struct Pager { /* private fields */ }
Expand description

Keeps track of the current pager state

Implementations

Creates new instance of Pager with default settings

Creates new instance of pager using env environment variable instead of PAGER

👎Deprecated since 0.12.0:

use with_env() instead

Creates a new Pager instance with the specified default fallback

Creates a new Pager instance directly specifying the desired pager

Launch pager with the specified environment variables

👎Deprecated since 0.14.0:

‘skip_on_notty’ is default now

Instructs Pager to bypass invoking pager if output is not a tty

Gives quick assessment of successful Pager setup

Initiates Pager framework and sets up all the necessary environment for sending standard output to the activated pager.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.