Trait asn1_rs::AsTaggedImplicit
source · [−]pub trait AsTaggedImplicit<'a, E = Error>: Sized {
fn implicit(
self,
class: Class,
constructed: bool,
tag: u32
) -> TaggedParser<'a, Implicit, Self, E> { ... }
}
Expand description
Helper trait for creating tagged IMPLICIT values
Examples
use asn1_rs::{AsTaggedImplicit, Class, Error, TaggedParser};
// create a `[1] IMPLICIT INTEGER` value, not constructed
let tagged: TaggedParser<_, _, Error> = 4u32.implicit(Class::ContextSpecific, false, 1);