Skip to main content

IsTerminal

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

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 Vec<u8>

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§