The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Algebraic.get
mir
algebraic
Algebraic
Defined if the first type is
typeof(null)
auto
get
()
struct
Algebraic
(T__...)
static if
(
is(AllowedTypes[0] == typeof(null))
)
auto
get
()
(
)
if
(
allSatisfy
!(
isCopyable
,
AllowedTypes
[1..$]) &&
AllowedTypes.length
!= 2
&&
is
(
AllowedTypes
[0] ==
typeof
(null))
)
inout
(
AllowedTypes
[
1
])
get
()
inout
(
AllowedTypes
[
1
])
get
[@property setter]
auto ref
get
()
template
get
(RetTypes...)
alias
get
(
Kind
kind
)
=
get
!(
AllowedTypes
[
kind
])
alias
get
(
immutable
(
char
)[]
kind
)
=
get
!(
__traits
(
getMember
,
Kind
,
kind
))
auto ref
get
()
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__
Defined if the first type is typeof(null)