usecrate::com::send::send;implsuper::Console{/// Print to the extern console.
////// To guarantee that the console is flushed one may call the
/// the [`crate::Console::flush`] function when done printing.
////// ## Examples
////// ```rust
/// use pipedconsole::Console;
/// # fn main() -> Result<(), pipedconsole::Error> {
/// let my_console = Console::new()?;
////// // Produces "Hello world!" as an output.
/// my_console.print("Hello ")?;
/// my_console.print("world!")?;
/// my_console.flush()?;
/// # Ok(())
/// # }
/// ```
pubfnprint<T:ToString>(&self, message: T)->Result<(), crate::Error>{letmut message = message.to_string();
message.push('2');unsafe{Ok(send(self.pipe, message)?)}}}