vadgl ~master (2026-08-09T23:38:48.9439982)
Dub
Repo
Result.Result
result
Result
Undocumented in source.
template
Result
(ErrorType, T)
@
safe
@
nogc
nothrow
@
mustuse
struct
Result {
ErrorType
error
;
static if
(
!is(T == void)
)
T
value
;
this
(ErrorType error, T value);
this
(T value);
this
(ErrorType error);
bool
is_error
();
bool
opCast
();
}
Constructors
this
this
(ErrorType error, T value)
Undocumented in source.
this
this
(T value)
Undocumented in source.
this
this
(ErrorType error)
Undocumented in source.
Members
Functions
is_error
bool
is_error
()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool
opCast
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
error
ErrorType
error
;
Undocumented in source.
value
T
value
;
Undocumented in source.
Meta
Source
See Implementation
result
Result
structs
Result