mint.enum - Palamecia/mint GitHub Wiki
Module
load mint.enum
This module provides a set of functions to perform extra operations on enums.
Functions
Descriptions
findEnumName
def (const self, % value)
Returns the member name from self
that is equal to value
. If self
is not an enum or has no member that match value
, none
is returned.
findEnumValue
def (const self, value)
Returns the first member from self
that is equal to value
. If self
is not an enum or has no member that match value
, none
is returned.