Function fromContainer [src]
Prototype
pub fn fromContainer(comptime Container: type, comptime field_name: []const u8) ?FieldTag Parameters
Container: typefield_name: []const u8 Source
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;
}