Class ResultData<OkType, void>

#include <Result.hpp>
template<class OkType>classResultData{ ... }
No description provided
Examples0
Public static methods0
Public member functions15
boolisOk()const

Returns true if the Result is Ok

Return value
true if the Result is Ok
boolisErr()const

Returns true if the Result is Err

Return value
true if the Result is Err
OkType&&unwrap()

Unwraps the Ok value from the Result

Return value
the Ok value
OkType&unwrap()

Unwraps the Ok value from the Result

Return value
the Ok value
const OkTypeconst&unwrap()const

Unwraps the Ok value from the Result

Return value
the Ok value
voidunwrapErr()

Unwraps the Err value from the Result

Return value
the Err value
geode::Result<OkType&,void>asRef()

Returns a Result with references to the underlying values

Return value
a Result with references to the underlying values
geode::Result<const OkTypeconst&,void>asConst()const

Returns a Result with const references to the underlying values

Return value
a Result with const references to the underlying values
OkTypeunwrapOrDefault()

Unwraps the Ok value from the Result, default constructing if unavailable

Return value
the Ok value if available, otherwise a default constructed Ok value
OkTypeunwrapOrDefault()const

Unwraps the Ok value from the Result, default constructing if unavailable

Return value
the Ok value if available, otherwise a default constructed Ok value
OkTypeunwrapOr(
auto&&defaultValue
)
No description provided
OkTypeunwrapOr(
auto&&defaultValue
)
const
No description provided
OkTypeunwrapOrElse()
No description provided
OkTypeunwrapOrElse()const
No description provided
geode::Result<std::remove_reference_t<OkType>,void>copied()const

Returns a Result with a copied Ok value

Return value
a Result with a copied Ok value
Fields0
Protected member functions8
template<class ClassType>voidResultData<type-parameter-0-0, void>(,)
No description provided
voidResultData<type-parameter-0-0, void>()
No description provided
geode::impl::OkContainer<OkType>asOk()
No description provided
geode::impl::OkContainer<OkType>asOk()const
No description provided
geode::impl::OkContainer<OkType&>asOk()
No description provided
geode::impl::OkContainer<OkType&>asOk()const
No description provided
geode::impl::ErrContainer<void>asErr()const
No description provided
voidinspectInternal()const
No description provided
Protected fields1
;
No description provided