[−][src]Struct pager::Pager
Keeps track of the current pager state
Implementations
impl Pager
[src]
pub fn new() -> Self
[src]
Creates new instance of Pager
with default settings
pub fn with_env(env: &str) -> Self
[src]
Creates new instance of pager using env
environment variable instead of PAGER
pub fn env(env: &str) -> Self
[src]
👎 Deprecated since 0.12.0:
use with_env() instead
pub fn with_default_pager<S>(pager: S) -> Self where
S: Into<OsString>,
[src]
S: Into<OsString>,
Creates a new Pager
instance with the specified default fallback
pub fn with_pager(pager: &str) -> Self
[src]
Creates a new Pager
instance directly specifying the desired pager
pub fn pager_envs(
self,
envs: impl IntoIterator<Item = impl Into<OsString>>
) -> Self
[src]
self,
envs: impl IntoIterator<Item = impl Into<OsString>>
) -> Self
Launch pager with the specified environment variables
pub fn skip_on_notty(self) -> Self
[src]
👎 Deprecated since 0.14.0:
'skip_on_notty' is default now
Instructs Pager
to bypass invoking pager if output is not a tty
pub fn is_on(&self) -> bool
[src]
Gives quick assessment of successful Pager
setup
pub fn setup(&mut self)
[src]
Initiates Pager framework and sets up all the necessary environment for sending standard output to the activated pager.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pager
impl Send for Pager
impl Sync for Pager
impl Unpin for Pager
impl UnwindSafe for Pager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,