The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
getEnumIndexFromKey.getEnumIndexFromKey
mir
enums
getEnumIndexFromKey
template
getEnumIndexFromKey
(T, bool caseInsensitive = 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