[−][src]Struct asn1_der::CopyingSource
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]
fn read(&mut self) -> Result<u8, Asn1DerError>
[src]
fn counting_source(self, ctr: &mut usize) -> CountingSource<Self>
[src]
fn copying_source<U: Sink>(self, sink: U) -> CopyingSource<Self, U>
[src]
Auto Trait Implementations
impl<S, U> RefUnwindSafe for CopyingSource<S, U> where
S: RefUnwindSafe,
U: RefUnwindSafe,
S: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, U> Send for CopyingSource<S, U> where
S: Send,
U: Send,
S: Send,
U: Send,
impl<S, U> Sync for CopyingSource<S, U> where
S: Sync,
U: Sync,
S: Sync,
U: Sync,
impl<S, U> Unpin for CopyingSource<S, U> where
S: Unpin,
U: Unpin,
S: Unpin,
U: Unpin,
impl<S, U> UnwindSafe for CopyingSource<S, U> where
S: UnwindSafe,
U: UnwindSafe,
S: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,