| // Part of the Crubit project, under the Apache License v2.0 with LLVM | |
| // Exceptions. See /LICENSE for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // Automatically @generated C++ bindings for the following Rust crate: | |
| // example_crate_golden | |
| // clang-format off | |
| #ifndef EXAMPLES_RUST_CPP_ENUM_EXAMPLE_CRATE_GOLDEN | |
| #define EXAMPLES_RUST_CPP_ENUM_EXAMPLE_CRATE_GOLDEN | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wreturn-type-c-linkage" | |
| #pragma clang diagnostic ignored "-Wunused-private-field" | |
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | |
| #pragma clang diagnostic ignored "-Wignored-attributes" | |
| #pragma clang diagnostic ignored "-Wshadow" | |
| #include "support/annotations_internal.h" | |
| #include "support/rs_std/traits.h" | |
| #include <cstdint> | |
| #include "support/rs_std/rs_core.h" | |
| namespace example_crate { | |
| // CRUBIT_ANNOTATE: cpp_enum=enum class | |
| enum class CRUBIT_INTERNAL_RUST_TYPE( | |
| ":: example_crate_golden :: Color") Color : ::std::int32_t { | |
| Red = INT32_C(0), | |
| Blue = INT32_C(1), | |
| Green = INT32_C(5), | |
| Gray = INT32_C(5), | |
| Magenta = INT32_C(7), | |
| }; | |
| } // namespace example_crate | |
| template <> | |
| struct ::rs::impl<::example_crate::Color, ::rs::core::cmp::Eq> { | |
| static constexpr bool kIsImplemented = true; | |
| }; | |
| #pragma clang diagnostic pop | |
| #endif // EXAMPLES_RUST_CPP_ENUM_EXAMPLE_CRATE_GOLDEN |