pub trait Sink: Sized {
// Required method
fn write(&mut self, e: u8) -> Result<(), Asn1DerError>;
// Provided method
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