dextool ~master (2018-04-15T20:31:52Z)
Dub
Repo
TaggedAlgebraic.opDispatch
taggedalgebraic
TaggedAlgebraic
Enables accessing properties/fields of the stored value.
auto
opDispatch
(
auto
ref
ARGS
args
)
ARGS
opDispatch
[@property setter]
struct
TaggedAlgebraic
(U)
@
property
auto
opDispatch
(
string
name
this
TA
ARGS
...
)
(
auto
ref
ARGS
args
)
if
(
hasOp
!(
TA
,
OpKind.field
,
name
,
ARGS
) &&
!
hasOp
!(
TA
,
OpKind.method
,
name
,
ARGS
)
)
if
(
is
(
U
== union) ||
is
(
U
== struct)
)
Meta
Source
See Implementation
taggedalgebraic
TaggedAlgebraic
aliases
Kind
Type
Union
functions
opBinary
opBinaryRight
opCall
opCast
opCmp
opDispatch
opEquals
opIndex
opIndexAssign
opOpAssign
opUnary
toString
properties
kind
Enables accessing properties/fields of the stored value.