mir-core ~master (2021-10-18T16:44:50Z)
Dub
Repo
getEnumIndexFromKey.getEnumIndexFromKey
mir
enums
getEnumIndexFromKey
template
getEnumIndexFromKey
(T, bool caseInsesetive = true, getKeysTemplate...)
@
safe
pure nothrow @
nogc
bool
getEnumIndexFromKey
(
C
)
(
scope
const
(
C
)[]
key
,
ref
uint
index
)
if
(
is
(
C
==
char
) ||
is
(
C
==
wchar
)
||
is
(
C
==
dchar
)
)
if
(
is
(
T
== enum) &&
getKeysTemplate.length
<= 1
)
Meta
Source
See Implementation
mir
enums
getEnumIndexFromKey
functions
getEnumIndexFromKey