The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Algebraic.trustedGet
mir
algebraic
Algebraic
Zero cost always nothrow
get
alternative
auto ref
trustedGet
()
template
trustedGet
(RetTypes...)
alias
trustedGet
(
Kind
kind
)
=
trustedGet
!(
AllowedTypes
[
kind
])
alias
trustedGet
(
immutable
(
char
)[]
kind
)
=
trustedGet
!(
__traits
(
getMember
,
Kind
,
kind
))
auto ref
trustedGet
()
struct
Algebraic
(T__...)
ref @
trusted
@
property
return inout nothrow
auto ref
trustedGet
(
E
)
(
)
if
(
is
(
E
==
T
)
)
Meta
Source
See Implementation
mir
algebraic
Algebraic
aliases
AllowedTypes
constructors
this
enums
Kind
functions
_is
get
isNull
isOk
kind
nullify
opAssign
opCast
opCmp
opEquals
opSlice
toHash
toString
trustedGet
static functions
_void
static variables
metaFieldNames__
typeFieldNames__
Zero cost always nothrow get alternative