phobos-next v0.3.9 (2020-08-07T21:50:30Z)
Home
Dub
Repo
IndexedBy
nxt
typecons_ex
struct
IndexedBy
(R, I)
struct
IndexedBy
(R, string IndexTypeName)
struct
IndexedBy (
R
string
IndexTypeName
)
if
(
hasIndexing
!
R
&&
IndexTypeName
!= "IndexTypeName"
) {
auto
findIndex
(E e);
R
_r
;
}
Alias This
_r
Members
Functions
findIndex
auto
findIndex
(E e)
Get index of element
E
wrapped in a
bool
-convertable struct.
Mixed In Members
From
mixin
_genIndexAndSliceOps_unchecked
!(
I__
)
From
mixin
_genIndexAndSliceOps
!(
mixin
(
IndexTypeName
))
Meta
Source
See Implementation
nxt
typecons_ex
enums
hasIndexing
isCastableTo
isIndexableBy
functions
enumToString
indexedBy
nullable
nullableRef
strictlyIndexed
mixin templates
RvalueRef
structs
IndexedArray
IndexedBy
templates
New
makeEnumFromSymbolNames