Trait asn1_rs::AsTaggedExplicit

source ·
pub trait AsTaggedExplicit<'a, E = Error>: Sized {
    // Provided method
    fn explicit(
        self,
        class: Class,
        tag: u32,
    ) -> TaggedParser<'a, Explicit, Self, E> { ... }
}
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§

source

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: Sized + 'a,