notnull v0.1.0 (2017-08-08T12:52:21Z)
Dub
Repo
Null
notnull
Undocumented in source.
struct
Null (
T
Exp
...
) {
import
std
.
algorithm
.
comparison
:
max
;
;
import
std
.
meta
:
staticMap
;
;
import
std
.
traits
:
isImplicitlyConvertible
;
;
alias
Type
=
T
;
static if
(
Exp.length > 0
)
void
[
max
(
staticMap
!(
classSize
,
Exp
),
T
.
sizeof
)]
payload
;
static if
(!(
Exp.length > 0
))
void
[
T
.
sizeof
]
payload
;
ErrorType
error
;
bool
isNull
[@property getter];
bool
isNotNull
[@property getter];
void
opAssign
(S s);
void
set
(Args args);
ErrorType
getError
();
T
get
();
void
rethrow
();
}
Members
Aliases
Type
alias
Type
=
T
Undocumented in source.
Functions
get
T
get
()
Undocumented in source. Be warned that the author may not have intended to support it.
getError
ErrorType
getError
()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void
opAssign
(S s)
Undocumented in source. Be warned that the author may not have intended to support it.
rethrow
void
rethrow
()
Undocumented in source. Be warned that the author may not have intended to support it.
set
void
set
(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
isNotNull
bool
isNotNull
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isNull
bool
isNull
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
error
ErrorType
error
;
Undocumented in source.
payload
void
[
max
(
staticMap
!(
classSize
,
Exp
),
T
.
sizeof
)]
payload
;
Undocumented in source.
payload
void
[
T
.
sizeof
]
payload
;
Undocumented in source.
Meta
Source
See Implementation
notnull
classes
NullPointerException
functions
makeNull
nnL
structs
Null