pub struct Pager { /* private fields */ }
Expand description
Keeps track of the current pager state
Implementations
sourceimpl Pager
impl Pager
sourcepub fn with_env(env: &str) -> Self
pub fn with_env(env: &str) -> Self
Creates new instance of pager using env
environment variable instead of PAGER
pub fn env(env: &str) -> Self
👎Deprecated since 0.12.0:
use with_env() instead
sourcepub fn with_default_pager<S>(pager: S) -> Selfwhere
S: Into<OsString>,
pub fn with_default_pager<S>(pager: S) -> Selfwhere
S: Into<OsString>,
Creates a new Pager
instance with the specified default fallback
sourcepub fn with_pager(pager: &str) -> Self
pub fn with_pager(pager: &str) -> Self
Creates a new Pager
instance directly specifying the desired pager
sourcepub fn pager_envs(
self,
envs: impl IntoIterator<Item = impl Into<OsString>>
) -> Self
pub fn pager_envs(
self,
envs: impl IntoIterator<Item = impl Into<OsString>>
) -> Self
Launch pager with the specified environment variables
sourcepub fn skip_on_notty(self) -> Self
👎Deprecated since 0.14.0: ‘skip_on_notty’ is default now
pub fn skip_on_notty(self) -> Self
‘skip_on_notty’ is default now
Instructs Pager
to bypass invoking pager if output is not a tty
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more