44     std::string_view 
const& msg,
    45     SourceLocation const& location = SourceLocation::current()) noexcept {
    51     std::string_view 
const& msg,
    52     SourceLocation const& location = SourceLocation::current()) noexcept {
    58     SourceLocation const& location = SourceLocation::current()) noexcept {
    59   panic(
"called `Option::unwrap()` on a `None` value", location);
    64     SourceLocation const& location = SourceLocation::current()) noexcept {
    65   panic(
"called `Option::value()` on a `None` value", location);
    70     SourceLocation const& location = SourceLocation::current()) noexcept {
    71   panic(
"called `Option::unwrap_none()` on a `Some` value", location);
    81     std::string_view 
const& msg, T 
const& err,
    82     SourceLocation const& location = SourceLocation::current()) noexcept {
    83   panic(msg, err, location);
    88     std::string_view 
const& msg,
    89     SourceLocation const& location = SourceLocation::current()) noexcept {
    97     SourceLocation const& location = SourceLocation::current()) noexcept {
    98   panic(
"called `Result::unwrap()` on an `Err` value", err, location);
   102 template <
typename T>
   105     SourceLocation const& location = SourceLocation::current()) noexcept {
   106   panic(
"called `Result::value()` on an `Err` value", err, location);
   111     SourceLocation const& location = SourceLocation::current()) noexcept {
   112   panic(
"called `Result::unwrap_err()` on an `Ok` value", location);
   117     SourceLocation const& location = SourceLocation::current()) noexcept {
   118   panic(
"called `Result::err_value()` on an `Ok` value", location);
 STX_FORCE_INLINE void no_err(SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Result<T, E>::unwrap_err() when a value is present 
Definition: panic_helpers.h:110
 
STX_FORCE_INLINE void no_none(SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Option<T>::unwrap_none() when a value is present 
Definition: panic_helpers.h:69
 
STX_FORCE_INLINE void no_lref(T const &err, SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Result<T, E>::value() when no value is present 
Definition: panic_helpers.h:103
 
#define STX_FORCE_INLINE
Definition: config.h:254
 
STX_FORCE_INLINE void expect_value_failed(std::string_view const &msg, T const &err, SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Result<T, E>::expect() when no value is present 
Definition: panic_helpers.h:80
 
STX_FORCE_INLINE void expect_err_failed(std::string_view const &msg, SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Result<T, E>::expect_err() when a value is present 
Definition: panic_helpers.h:87
 
STX_FORCE_INLINE void no_err_lref(SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Result<T, E>::err_value() when no value is present 
Definition: panic_helpers.h:116
 
STX_FORCE_INLINE void expect_none_failed(std::string_view const &msg, SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Option<T>::expect_none() when a value is present 
Definition: panic_helpers.h:50
 
#define STX_END_NAMESPACE
Definition: config.h:329
 
Definition: source_location.h:48
 
STX_FORCE_INLINE void no_value(T const &err, SourceLocation const &location=SourceLocation::current()) noexcept
panic helper for Result<T, E>::unwrap() when no value is present 
Definition: panic_helpers.h:95
 
#define STX_BEGIN_NAMESPACE
Definition: config.h:325
 
STX_FORCE_INLINE void panic(std::string_view const &info, T const &value, SourceLocation const &location=SourceLocation::current()) noexcept
Definition: panic.h:63