pub fn return_type_name(as_type: Option<&impl AsType>) -> Result<String, Error>