☰
TryImpl
struct
TryImpl
Static Methods
from_default
from_output
into_output
is_success
preserve_error
Struct
Subspace
::
sus
::
ops
::
TryImpl
source
struct
TryImpl
{ ... };
Static Methods
source
static
auto
from_default
() ->
Option
<T>
requires
sus::construct::Default<T>
source
static
auto
from_default
() ->
Result
<void, E>
source
static
auto
from_output
(sus::ops::TryImpl::Output t) ->
Option
<T>
source
static
auto
into_output
(
Option
<T> t) -> sus::ops::TryImpl::Output
source
static
auto
into_output
(
Result
<T, E> t) -> sus::ops::TryImpl::Output
source
static
auto
into_output
(
Result
<void, E> t) -> void
source
static
auto
into_output
(std::optional<T> t) -> sus::ops::TryImpl::Output
source
static
auto
is_success
(
const
Option
<T>& t) -> bool
source
static
auto
is_success
(
const
Result
<T, E>& t) -> bool
source
static
auto
is_success
(
const
Result
<void, E>& t) -> bool
source
static
auto
is_success
(
const
std::optional<T>& t) -> bool
source
template <class U>
static
auto
preserve_error
(
Option
<U>) ->
Option
<T>
source
template <class U>
static
auto
preserve_error
(
Result
<U, E> t) ->
Result
<T, E>
source
static
auto
preserve_error
(
Result
<void, E> t) ->
Result
<void, E>
source
template <class U>
static
auto
preserve_error
(std::optional<U>) -> std::optional<T>