pub fn opt<'cert>(
    tag: Tag,
    buf: &mut untrusted::Reader<'cert>,
) -> Result<Option<untrusted::Input<'cert>>, Error> {
    if !buf.peek(tag.0) {
        return Ok(None);
    }
    let (_, data) = any(buf)?;
    Ok(Some(data))
}
/// Parses an optional element of a `SEQUENCE`.
Parses an optional element of a `SEQUENCE`.
Parses an optional element of a ` SEQUENCE ` .
pub fn opt<'cert>(
    tag: Tag,
    buf: &mut untrusted::Reader<'cert>,
) -> Result<Option<untrusted::Input<'cert>>, Error> {
    if !buf.peek(tag.0) {
        return Ok(None);
    }
    let (_, data) = any(buf)?;
    Ok(Some(data))
}
pub fn opt < ' cert > ( tag : Tag , buf : & mut untrusted :: Reader < ' cert > , ) -> Result < Option < untrusted :: Input < ' cert > > , Error > { if ! buf . peek ( tag . 0 ) { return Ok ( None ) ; } let ( _ , data ) = any ( buf ) ? ; Ok ( Some ( data ) ) }
Parses an optional element of a `SEQUENCE`.
Parses an optional element of a ` SEQUENCE ` .
tag
Tag
buf
&mut untrusted::Reader<'cert>
tag
Tag
buf
&mut untrusted::Reader<'cert>