pub trait Command: Debug + Display { }
Expand description
A command for the terminal.
Commands provide instructions to the terminal and are communicated in-band
by writing ANSI escape codes. Doing so is the responsibility of the
core::fmt::Display
implementation, whereas the core::fmt::Debug
implementation should simply identify the command.
This trait is object-safe.
Implementations on Foreign Types§
impl<C: Command + ?Sized> Command for &C
A borrowed command is a command.
impl<C: Command + ?Sized> Command for Box<C>
A boxed command is a command.