Trait der::Writer

source ·
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§

source

fn write(&mut self, slice: &[u8]) -> Result<()>

Write the given DER-encoded bytes as output.

Provided Methods§

source

fn write_byte(&mut self, byte: u8) -> Result<()>

Write a single byte.

Implementors§

source§

impl<'a> Writer for SliceWriter<'a>

source§

impl<W: Write> Writer for W