pub fn get_return_handler( retval_ty: &Option<Type>, return_ty: &Option<Type>, span: Span, type_system: ModelTypeSystem, ) -> Result<Box<dyn ReturnHandler>, &'static str>
Resolves the correct return handler to use.