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.