Trait asn1_der::Sink

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

source

fn write(&mut self, e: u8) -> Result<(), Asn1DerError>

Writes e to self

Provided Methods§

source

fn counting_sink(self, ctr: &mut usize) -> CountingSink<'_, Self>

Creates a counting sink

Implementations on Foreign Types§

source§

impl<'a> Sink for IterMut<'a, u8>

source§

fn write(&mut self, e: u8) -> Result<(), Asn1DerError>

source§

impl<S: Sink> Sink for &mut S

source§

fn write(&mut self, e: u8) -> Result<(), Asn1DerError>

source§

impl Sink for Vec<u8>

source§

fn write(&mut self, e: u8) -> Result<(), Asn1DerError>

Implementors§

source§

impl<'a> Sink for SliceSink<'a>

source§

impl<'a> Sink for VecBacking<'a>