DoxigAlpha

fromContainer

Function parameters

Parameters

#
Container:type
field_name:[]const u8

Type definitions in this namespace

Types

#
Element
A decoded view.
ExpectedTag
For decoding.
Any
Use sparingly.

Functions in this namespace

Functions

#

Source

Implementation

#
pub fn fromContainer(comptime Container: type, comptime field_name: []const u8) ?FieldTag {
    if (@hasDecl(Container, "asn1_tags") and @hasField(@TypeOf(Container.asn1_tags), field_name)) {
        return @field(Container.asn1_tags, field_name);
    }

    return null;
}