[][src]Trait asn1_der::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> { ... } }

A trait defining a byte source

Required methods

fn read(&mut self) -> Result<u8, Asn1DerError>

Reads the next element

Loading content...

Provided methods

fn counting_source(self, ctr: &mut usize) -> CountingSource<Self>

Creates a counting source

fn copying_source<U: Sink>(self, sink: U) -> CopyingSource<Self, U>

Creates a copying source

Loading content...

Implementations on Foreign Types

impl<'_, S: Source> Source for &'_ mut S[src]

impl<'a> Source for Iter<'a, u8>[src]

impl<'a, A: Iterator<Item = &'a u8>, B: Iterator<Item = &'a u8>> Source for Chain<A, B>[src]

impl<'a, I: Iterator<Item = &'a u8> + 'a> Source for Skip<I>[src]

Loading content...

Implementors

impl<'a, S: Source> Source for CountingSource<'a, S>[src]

impl<S: Source, U: Sink> Source for CopyingSource<S, U>[src]

Loading content...