dscanner v0.9.0-beta.2 (2020-04-09T18:20:51Z)
Dub
Repo
SafeAccess.as
dscanner
utils
SafeAccess
Allows cast to interfaces and classes inside the chain.
struct
SafeAccess
(M)
ref @
trusted
auto ref
as
(
A
)
(
)
if
(
!__traits(
hasMember
,
M
, "as") &&
(
is
(
A
== class) ||
is
(
A
== interface)
)
)
if
(
is
(
M
== class)
)
Meta
Source
See Implementation
dscanner
utils
SafeAccess
aliases
unwrap
constructors
this
functions
as
opDispatch
variables
m
Allows cast to interfaces and classes inside the chain.