pub trait AsTaggedExplicit<'a, E = Error>: Sized {
// Provided method
fn explicit(
self,
class: Class,
tag: u32,
) -> TaggedParser<'a, Explicit, Self, E> { ... }
}
Available on crate feature
mtls
only.Expand description
Helper trait for creating tagged EXPLICIT values
§Examples
use asn1_rs::{AsTaggedExplicit, Class, Error, TaggedParser};
// create a `[1] EXPLICIT INTEGER` value
let tagged: TaggedParser<_, _, Error> = 4u32.explicit(Class::ContextSpecific, 1);
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.