pub struct Asn1Compiler { /* private fields */ }
Expand description

ASN.1 Compiler Struct.

An application should create a Compiler Structure and will call Public API functions on the compiler.

Implementations

Create a new Instance of the Compiler structure.

Add a module to the list of known modules.

If the module alredy exists, returns false else returns true.

Resolve Modules order and definitions within those modules.

First Makes sure that all the modules that have IMPORTs are indeed added to us. Then definitions in each of the modules are ‘resolved’. Calls the Resolver functions to do that. Modules are Topologically Sorted before they are resolved and definitions within modules are topologically sorted as well. This makes Error handling for undefined definitions much easier.

Generate the code

The Actual compilation driver

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.