[][src]Struct asn1_der::CopyingSource

pub struct CopyingSource<S: Source, U: Sink> { /* fields omitted */ }

A source that also copies each read element to the sink

Warning: if a call to write fails, this source will return an error and the element that has been read from the underlying source will be lost

Methods

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

pub fn copy_next(&mut self) -> Result<(), Asn1DerError>[src]

Copies the next element

pub fn copy_n(&mut self, n: usize) -> Result<(), Asn1DerError>[src]

Copies the next n elements

Trait Implementations

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

Auto Trait Implementations

impl<S, U> RefUnwindSafe for CopyingSource<S, U> where
    S: RefUnwindSafe,
    U: RefUnwindSafe

impl<S, U> Send for CopyingSource<S, U> where
    S: Send,
    U: Send

impl<S, U> Sync for CopyingSource<S, U> where
    S: Sync,
    U: Sync

impl<S, U> Unpin for CopyingSource<S, U> where
    S: Unpin,
    U: Unpin

impl<S, U> UnwindSafe for CopyingSource<S, U> where
    S: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.