[−][src]Struct asn1_der::CountingSource
A source that counts the amount of elements read
Warning: if a call to read
would cause ctr
to exceed usize::max_value()
, this source
will return an error and the element that has been read from the underlying source will be
lost
Trait Implementations
impl<'a, S: Source> Source for CountingSource<'a, S>
[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<'a, S> RefUnwindSafe for CountingSource<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for CountingSource<'a, S> where
S: Send,
S: Send,
impl<'a, S> Sync for CountingSource<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Unpin for CountingSource<'a, S> where
S: Unpin,
S: Unpin,
impl<'a, S> !UnwindSafe for CountingSource<'a, S>
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>,