pub trait Sink {
// Required methods
fn literal(&mut self, text: &str) -> Result<()>;
fn arg(&mut self, name: ArgName, value: &dyn DisplayBytes) -> Result<()>;
}Expand description
Destination of formatting, which keeps the format string’s text apart from its arguments.
Every std::io::Write is a Sink that writes both as-is.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".