pub trait Sink: Sized {
fn write(&mut self, e: u8) -> Result<(), Asn1DerError>;
fn counting_sink(self, ctr: &mut usize) -> CountingSink<'_, Self> { ... }
}
Expand description
A trait defining a byte sink
Required Methods§
Provided Methods§
sourcefn counting_sink(self, ctr: &mut usize) -> CountingSink<'_, Self>
fn counting_sink(self, ctr: &mut usize) -> CountingSink<'_, Self>
Creates a counting sink