Trait asn1_der::Sink[][src]

pub trait Sink: Sized {
    fn write(&mut self, e: u8) -> Result<(), Asn1DerError>;

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

A trait defining a byte sink

Required methods

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

Writes e to self

Loading content...

Provided methods

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

Creates a counting sink

Loading content...

Implementations on Foreign Types

impl<S: Sink> Sink for &mut S[src]

impl<'a> Sink for IterMut<'a, u8>[src]

impl Sink for Vec<u8>[src]

Loading content...

Implementors

impl<'a> Sink for SliceSink<'a>[src]

impl<'a> Sink for VecBacking<'a>[src]

Loading content...