fromContainer
Function parameters
Parameters
- Container:type
- field_name:[]const u8
Type definitions in this namespace
Types
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;
}