fn take_constructed_ber<S: decode::Source>(
        cons: &mut decode::Constructed<S>
    ) -> Result<Self, S::Err> {
        cons.capture(|cons| {
            while cons.skip_opt(|tag, _, _| {
                if tag == Tag::OCTET_STRING {
                    Ok(())
                }
                else {
                    xerr!(Err(decode::Malformed.into()))
                }
            })?.is_some() { }
            Ok(())
        }).map(|captured| OctetString(Inner::Constructed(captured)))
    }
/// Parses a constructed BER encoded octet string.
///
/// It consists octet string values either primitive or constructed.
Parses a constructed BER encoded octet string.
It consists octet string values either primitive or constructed.
Parses a constructed BER encoded octet string . It consists octet string values either primitive or constructed .
fn take_constructed_ber<S: decode::Source>(
        cons: &mut decode::Constructed<S>
    ) -> Result<Self, S::Err> {
        cons.capture(|cons| {
            while cons.skip_opt(|tag, _, _| {
                if tag == Tag::OCTET_STRING {
                    Ok(())
                }
                else {
                    xerr!(Err(decode::Malformed.into()))
                }
            })?.is_some() { }
            Ok(())
        }).map(|captured| OctetString(Inner::Constructed(captured)))
    }
fn take_constructed_ber < S : decode :: Source > ( cons : & mut decode :: Constructed < S > ) -> Result < Self , S :: Err > { cons . capture ( | cons | { while cons . skip_opt ( | tag , _ , _ | { if tag == Tag :: OCTET_STRING { Ok ( ( ) ) } else { xerr ! ( Err ( decode Malformed into ( ) ) ) } } ) ? . is_some ( ) { } Ok ( ( ) ) } ) . map ( | captured | OctetString ( Inner :: Constructed ( captured ) ) ) }
Parses a constructed BER encoded octet string.
Parses a constructed BER encoded octet string .
cons
&mut decode::Constructed<S>
cons
&mut decode::Constructed<S>