IsTerminal

Trait IsTerminal 

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

Custom trait for determining if something is a terminal. This mirrors the trait from std::io, but that one is sealed and not able to be implemented on custom types.

Required Methods§

Source

fn is_terminal(&self) -> bool

Returns true if the current object is a terminal.

Implementors§