r##"#pragma once //for assert #include //for std::abort #include //for std::move #include //for std::conditional #include #include "LatLon.h" #include "WindVelocity.hpp" #include "c_WindVelocity.h" #include "RustForeignVecWindVelocity.h" #include "rust_vec.h" #include "RemoteApiError.hpp" #include "c_RemoteApiError.h" #include "rust_resultCRustForeignVec4232mut3232c_void.h" #include #include "c_Weather.h" namespace org_examples { template class WeatherWrapper; using Weather = WeatherWrapper; using WeatherRef = WeatherWrapper; template class WeatherWrapper { public: using value_type = WeatherWrapper; friend class WeatherWrapper; friend class WeatherWrapper; static std::variant get_wind_for(struct CLatLon pos) noexcept; };"##; r#"template inline std::variant WeatherWrapper::get_wind_for(struct CLatLon pos) noexcept { struct CRustResultCRustForeignVec4232mut3232c_void ret = Weather_get_wind_for(pos); return ret.is_ok != 0 ? std::variant { RustForeignVecWindVelocity{ret.data.ok} } : std::variant { RemoteApiError(static_cast(ret.data.err)) }; }"#;