pub trait InTerminalAuto: InTerminalwhere
Self: Sized,{
// Required methods
fn in_terminal(&self) -> Result<Self, DetectionError>;
fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>
where I: IntoIterator<Item = S>,
S: AsRef<OsStr>;
}
Expand description
Allows a Command
to be executed in a terminal (which is automatically detected)
Required Methods§
fn in_terminal(&self) -> Result<Self, DetectionError>
fn in_terminal_args<I, S>(&self, args: I) -> Result<Self, DetectionError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.