[][src]Struct asn1_der::CountingSource

pub struct CountingSource<'a, S: Source> { /* fields omitted */ }

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]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for CountingSource<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for CountingSource<'a, S> where
    S: Send

impl<'a, S> Sync for CountingSource<'a, S> where
    S: Sync

impl<'a, S> Unpin for CountingSource<'a, S> where
    S: Unpin

impl<'a, S> !UnwindSafe for CountingSource<'a, S>

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.