anstream::stream

Trait 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 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<'_>

Source§

impl IsTerminal for dyn Write

Source§

impl IsTerminal for dyn Write + Send

Source§

impl IsTerminal for dyn Write + Send + Sync

Source§

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

Source§

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

Source§

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

Implementors§