pub trait ResultType<E>where
E: Debug,{
type ReturnType: SupportedReturnType;
// Required method
fn into_result(self) -> Result<Self::ReturnType, E>;
}Expand description
A trait to handle either a SupportedReturnType or a Result<impl SupportedReturnType>
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, E>
fn into_result(self) -> Result<Self::ReturnType, E>
Convert the return type into a Result<impl SupportedReturnType>