Function Subspace :: sus :: ops :: try_preserve_error
template <class U, class T>
auto try_preserve_error(T&& t) -> U
requires
sus::ops::TryErrorConvertibleTo<T, U>
!std::is_const_v<U>
!std::is_reference_v<U>
sus::mem::IsMoveRef<decltype(t)>
Converts from a Try type T to another
Try type U with a compatible
error state. The input must be in an error state, and the output will be as
well.
Panics
If the input is not in an error state
(try_is_success would return false)
the function will panic.