pub trait IsTerminal: Sealed {
    // Required method
    fn is_terminal(&self) -> bool;
}
Expand description

Trait to determine if a descriptor/handle refers to a terminal/tty.

Required Methods§

source

fn is_terminal(&self) -> bool

Returns true if the descriptor/handle refers to a terminal/tty.

Implementations on Foreign Types§

source§

impl<T: IsTerminal + ?Sized> IsTerminal for &T

source§

impl<T: IsTerminal + ?Sized> IsTerminal for &mut T

source§

impl IsTerminal for Stdout

source§

impl<T: IsTerminal + ?Sized> IsTerminal for Box<T>

source§

impl IsTerminal for Vec<u8>

source§

impl IsTerminal for Stderr

source§

impl IsTerminal for StderrLock<'_>

source§

impl IsTerminal for dyn Write

source§

impl IsTerminal for dyn Write + Send

source§

impl IsTerminal for StdoutLock<'_>

source§

impl IsTerminal for File

source§

impl IsTerminal for dyn Write + Send + Sync

Implementors§