pub trait Commands {
// Required method
fn write_ansi(&self, writer: &mut impl Write) -> Result<(), Error>;
}Available on crate feature
term only.Expand description
An ordered batch of terminal commands.
Implemented for borrowed collections that yield shared Command
references and for heterogeneous tuples of up to 20 commands.
Required Methods§
Sourcefn write_ansi(&self, writer: &mut impl Write) -> Result<(), Error>
fn write_ansi(&self, writer: &mut impl Write) -> Result<(), Error>
Writes the ANSI representation of every command in order.
This method is normally called through CommandQueue::queue_many.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".