pub trait Writer {
// Required method
fn write(&mut self, slice: &[u8]) -> Result<()>;
// Provided method
fn write_byte(&mut self, byte: u8) -> Result<()> { ... }
}Expand description
Writer trait which outputs encoded DER.
Required Methods§
Provided Methods§
Sourcefn write_byte(&mut self, byte: u8) -> Result<()>
fn write_byte(&mut self, byte: u8) -> Result<()>
Write a single byte.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".