vtypechoice.result

Undocumented in source.

Members

Aliases

isErr
alias isErr(T) = imported!"std.traits".isInstanceOf!(Err, T)
Undocumented in source.
isOk
alias isOk(T) = imported!"std.traits".isInstanceOf!(Ok, T)
Undocumented in source.
isResult
alias isResult(T) = imported!"std.traits".isInstanceOf!(Result, T)
Undocumented in source.

Functions

andThen
auto andThen(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
andThen
auto andThen(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
andThen
auto andThen(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
andThen
auto andThen(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
err
auto err(E value)
Undocumented in source. Be warned that the author may not have intended to support it.
flatten
Result!(T, E) flatten(Result!(Result!(T, E), E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
handle
auto ref handle(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
handleErr
auto ref handleErr(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
has
bool has(Result!(T, E) result, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
hasErr
bool hasErr(Result!(T, E) result, E value)
Undocumented in source. Be warned that the author may not have intended to support it.
ok
auto ok(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
or
ref or(Result!(T, E) result, Result!(T, E) other)
Undocumented in source. Be warned that the author may not have intended to support it.
orElse
auto ref orElse(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
unwrap
inout(T) unwrap(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.
unwrapErr
inout(E) unwrapErr(Result!(T, E) result)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Err
struct Err(T)
Undocumented in source.
Ok
struct Ok(T)
Undocumented in source.
Result
struct Result(T, E = string)
Undocumented in source.

Templates

fmap
template fmap(alias pred)
Undocumented in source.
fmapErr
template fmapErr(alias pred)
Undocumented in source.
fmapOr
template fmapOr(alias pred)
Undocumented in source.
fmapOrElse
template fmapOrElse(alias pred, alias orElse)
Undocumented in source.

Meta