#include "tensorstore/util/result.h"
template <typename U>
  
requires std::is_convertible_v<
      
std::add_const_t<std::add_lvalue_reference_t<U>>,
     
 T>
Resulttensorstore::Result<T>::operator=(const Result<U>rhs);
template <typename U>
  
requires (!std::is_same_v<T, U>) &&
          
 std::is_convertible_v<std::add_rvalue_reference_t<U>, T>
Resulttensorstore::Result<T>::operator=(Result<U>&rhs);

Assigns from an existing result with a convertible value type.

Requires:

T is void, or T is constructible from U and is not constructible from Result<U>.