logo
pub trait AsTaggedExplicit<'a> {
    fn explicit(
        self,
        class: Class,
        tag: u32
    ) -> TaggedParser<'a, Explicit, Self> { ... } }
Available on crate feature mtls only.
Expand description

Helper trait for creating tagged EXPLICIT values

Examples

use asn1_rs::{AsTaggedExplicit, Class};

// create a `[1] EXPLICIT INTEGER` value
let tagged = 4u32.explicit(Class::ContextSpecific, 1);

Provided Methods

Implementors