phobos-next v0.5.1 (2022-12-21T17:07:30Z)
Home
Dub
Repo
IndexedBy.findIndex
nxt
typecons_ex
IndexedBy
Get index of element
E
wrapped in a
bool
-convertable struct.
struct
IndexedBy
(R, string IndexTypeName)
@
safe
pure nothrow @
nogc
static if
(
__traits(isStaticArray, R)
)
auto
findIndex
(
E
)
(
E
e
)
if
(
hasIndexing
!
R
&&
IndexTypeName
!= "IndexTypeName"
)
Meta
Source
See Implementation
nxt
typecons_ex
IndexedBy
functions
findIndex
mixins
__anonymous
variables
_r
Get index of element E wrapped in a bool-convertable struct.