Function getKind [src]

Prototype

pub fn getKind(self: Attribute) Kind

Parameters

self: Attribute

Source

pub fn getKind(self: Attribute) Kind { return switch (self) { else => self, .string => |string_attr| Kind.fromString(string_attr.kind), }; }