mir-core ~master (2021-10-18T16:44:50Z)
Dub
Repo
getEnumIndexFromKey
mir
enums
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
)
Members
Functions
getEnumIndexFromKey
bool
getEnumIndexFromKey
(const(C)[] key, uint index)
Meta
Source
See Implementation
mir
enums
functions
getEnumIndex
unsafeEnumFromIndex
templates
enumIdentifiers
enumMembers
enumStrings
getEnumIndexFromKey