pub trait IsTerminal {
// Required method
fn is_terminal(&self) -> bool;
}Required Methods§
Sourcefn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Returns whether this stream is backed by a TTY.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".