1#ifndef ICU4X_DateTimeMismatchedCalendarError_HPP
2#define ICU4X_DateTimeMismatchedCalendarError_HPP
25inline icu4x::capi::DateTimeMismatchedCalendarError icu4x::DateTimeMismatchedCalendarError::AsFFI()
const {
26 return icu4x::capi::DateTimeMismatchedCalendarError {
28 date_kind.has_value() ? (icu4x::capi::CalendarKind_option{ {
date_kind.value().AsFFI() },
true }) : (icu4x::capi::CalendarKind_option{ {},
false }),
32inline icu4x::DateTimeMismatchedCalendarError icu4x::DateTimeMismatchedCalendarError::FromFFI(icu4x::capi::DateTimeMismatchedCalendarError c_struct) {
33 return icu4x::DateTimeMismatchedCalendarError {
34 icu4x::CalendarKind::FromFFI(c_struct.this_kind),
35 c_struct.date_kind.is_ok ? std::optional(icu4x::CalendarKind::FromFFI(c_struct.date_kind.ok)) : std::nullopt,
std::optional< icu4x::CalendarKind > date_kind
Definition DateTimeMismatchedCalendarError.d.hpp:38
icu4x::CalendarKind this_kind
Definition DateTimeMismatchedCalendarError.d.hpp:37