pub trait ResultType {
type ReturnType: SupportedReturnType;
// Required method
fn into_result(self) -> Result<Self::ReturnType>;
}
Expand description
A trait to handle either a SupportedReturnType or a Result
Required Associated Types§
Sourcetype ReturnType: SupportedReturnType
type ReturnType: SupportedReturnType
The return type of the supported return value
Required Methods§
Sourcefn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a Result