Trait std::io::IsTerminal
1.70.0 · source · pub trait IsTerminal: Sealed {
// Required method
fn is_terminal(&self) -> bool;
}
Expand description
Trait 确定 descriptor/handle 是否指代 terminal/tty。
Required Methods§
sourcefn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Implementors§
impl IsTerminal for File
impl IsTerminal for BorrowedFd<'_>
impl IsTerminal for OwnedFd
impl IsTerminal for BorrowedHandle<'_>
Available on Windows only.
impl IsTerminal for OwnedHandle
Available on Windows only.