Trait anstream::stream::IsTerminal

source ·
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 IsTerminal for &mut Box<dyn Write>

source§

impl IsTerminal for &mut Vec<u8>

source§

impl IsTerminal for &mut File

source§

impl IsTerminal for &mut StderrLock<'_>

source§

impl IsTerminal for &mut StdoutLock<'_>

source§

impl IsTerminal for Box<dyn Write>

source§

impl IsTerminal for Vec<u8>

source§

impl IsTerminal for File

source§

impl IsTerminal for Stderr

source§

impl IsTerminal for StderrLock<'_>

source§

impl IsTerminal for Stdout

source§

impl IsTerminal for StdoutLock<'_>

Implementors§