Struct asn1_der::CopyingSource

source ·
pub struct CopyingSource<S: Source, U: Sink> { /* private fields */ }
Expand description

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

Implementations§

Copies the next element

Copies the next n elements

Trait Implementations§

Reads the next element
Creates a counting source
Creates a copying source

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.