pub trait Sink {
// Required method
fn write_all(&mut self, bytes: &[u8]) -> Result<(), SourceError>;
}Expand description
Where a saved document is written. Like crate::Source, it keeps the
core crates free of ambient I/O: the host decides whether bytes go to
memory, a file or a socket.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".