Trait asn1_der::Source

source ·
pub trait Source: Sized {
    fn read(&mut self) -> Result<u8, Asn1DerError>;

    fn counting_source(self, ctr: &mut usize) -> CountingSource<'_, Self> { ... }
    fn copying_source<U: Sink>(self, sink: U) -> CopyingSource<Self, U> { ... }
}
Expand description

A trait defining a byte source

Required Methods§

Reads the next element

Provided Methods§

Creates a counting source

Creates a copying source

Implementations on Foreign Types§

Implementors§