DateTimeMismatchedCalendarError.d.hpp (1321B)
1 #ifndef icu4x_DateTimeMismatchedCalendarError_D_HPP 2 #define icu4x_DateTimeMismatchedCalendarError_D_HPP 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #include <stddef.h> 7 #include <stdbool.h> 8 #include <memory> 9 #include <functional> 10 #include <optional> 11 #include <cstdlib> 12 #include "../diplomat_runtime.hpp" 13 #include "CalendarKind.d.hpp" 14 15 namespace icu4x { 16 class CalendarKind; 17 } 18 19 20 namespace icu4x { 21 namespace capi { 22 struct DateTimeMismatchedCalendarError { 23 icu4x::capi::CalendarKind this_kind; 24 icu4x::capi::CalendarKind_option date_kind; 25 }; 26 27 typedef struct DateTimeMismatchedCalendarError_option {union { DateTimeMismatchedCalendarError ok; }; bool is_ok; } DateTimeMismatchedCalendarError_option; 28 } // namespace capi 29 } // namespace 30 31 32 namespace icu4x { 33 /** 34 * See the [Rust documentation for `MismatchedCalendarError`](https://docs.rs/icu/latest/icu/datetime/struct.MismatchedCalendarError.html) for more information. 35 */ 36 struct DateTimeMismatchedCalendarError { 37 icu4x::CalendarKind this_kind; 38 std::optional<icu4x::CalendarKind> date_kind; 39 40 inline icu4x::capi::DateTimeMismatchedCalendarError AsFFI() const; 41 inline static icu4x::DateTimeMismatchedCalendarError FromFFI(icu4x::capi::DateTimeMismatchedCalendarError c_struct); 42 }; 43 44 } // namespace 45 #endif // icu4x_DateTimeMismatchedCalendarError_D_HPP