blob: 7c11dd4d66933fda8023871d9cbbd089b8a798c7 [file] [log] [blame]
// 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 Rust bindings for the following C++ target:
// //rs_bindings_from_cc/test/golden:doc_comment_cc
// Features: experimental, extern_c, supported
#include "support/internal/cxx20_backports.h"
#include "support/internal/offsetof.h"
#include "support/internal/sizeof.h"
#include <cstddef>
#include <memory>
// Public headers of the C++ library being wrapped.
#include "rs_bindings_from_cc/test/golden/doc_comment.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wthread-safety-analysis"
static_assert(CRUBIT_SIZEOF(struct DocCommentSlashes) == 4);
static_assert(alignof(struct DocCommentSlashes) == 4);
static_assert(CRUBIT_OFFSET_OF(i, struct DocCommentSlashes) == 0);
extern "C" void __rust_thunk___ZN17DocCommentSlashesC1EOS_(
struct DocCommentSlashes* __this, struct DocCommentSlashes* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct DocCommentSlashes*
__rust_thunk___ZN17DocCommentSlashesaSERKS_(
struct DocCommentSlashes* __this,
const struct DocCommentSlashes* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct DocCommentSlashes* __rust_thunk___ZN17DocCommentSlashesaSEOS_(
struct DocCommentSlashes* __this, struct DocCommentSlashes* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
static_assert(CRUBIT_SIZEOF(struct DocCommentBang) == 4);
static_assert(alignof(struct DocCommentBang) == 4);
static_assert(CRUBIT_OFFSET_OF(i, struct DocCommentBang) == 0);
extern "C" void __rust_thunk___ZN14DocCommentBangC1Ev(
struct DocCommentBang* __this) {
crubit::construct_at(__this);
}
extern "C" void __rust_thunk___ZN14DocCommentBangC1EOS_(
struct DocCommentBang* __this, struct DocCommentBang* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct DocCommentBang* __rust_thunk___ZN14DocCommentBangaSERKS_(
struct DocCommentBang* __this, const struct DocCommentBang* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct DocCommentBang* __rust_thunk___ZN14DocCommentBangaSEOS_(
struct DocCommentBang* __this, struct DocCommentBang* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
static_assert(CRUBIT_SIZEOF(struct MultilineCommentTwoStars) == 4);
static_assert(alignof(struct MultilineCommentTwoStars) == 4);
static_assert(CRUBIT_OFFSET_OF(i, struct MultilineCommentTwoStars) == 0);
extern "C" void __rust_thunk___ZN24MultilineCommentTwoStarsC1Ev(
struct MultilineCommentTwoStars* __this) {
crubit::construct_at(__this);
}
extern "C" void __rust_thunk___ZN24MultilineCommentTwoStarsC1EOS_(
struct MultilineCommentTwoStars* __this,
struct MultilineCommentTwoStars* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct MultilineCommentTwoStars*
__rust_thunk___ZN24MultilineCommentTwoStarsaSERKS_(
struct MultilineCommentTwoStars* __this,
const struct MultilineCommentTwoStars* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct MultilineCommentTwoStars*
__rust_thunk___ZN24MultilineCommentTwoStarsaSEOS_(
struct MultilineCommentTwoStars* __this,
struct MultilineCommentTwoStars* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
static_assert(CRUBIT_SIZEOF(struct LineComment) == 4);
static_assert(alignof(struct LineComment) == 4);
static_assert(CRUBIT_OFFSET_OF(i, struct LineComment) == 0);
extern "C" void __rust_thunk___ZN11LineCommentC1Ev(struct LineComment* __this) {
crubit::construct_at(__this);
}
extern "C" void __rust_thunk___ZN11LineCommentC1EOS_(
struct LineComment* __this, struct LineComment* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct LineComment* __rust_thunk___ZN11LineCommentaSERKS_(
struct LineComment* __this, const struct LineComment* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct LineComment* __rust_thunk___ZN11LineCommentaSEOS_(
struct LineComment* __this, struct LineComment* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
static_assert(CRUBIT_SIZEOF(struct MultilineOneStar) == 4);
static_assert(alignof(struct MultilineOneStar) == 4);
static_assert(CRUBIT_OFFSET_OF(i, struct MultilineOneStar) == 0);
extern "C" void __rust_thunk___ZN16MultilineOneStarC1Ev(
struct MultilineOneStar* __this) {
crubit::construct_at(__this);
}
extern "C" void __rust_thunk___ZN16MultilineOneStarC1EOS_(
struct MultilineOneStar* __this, struct MultilineOneStar* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct MultilineOneStar* __rust_thunk___ZN16MultilineOneStaraSERKS_(
struct MultilineOneStar* __this, const struct MultilineOneStar* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct MultilineOneStar* __rust_thunk___ZN16MultilineOneStaraSEOS_(
struct MultilineOneStar* __this, struct MultilineOneStar* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
extern "C" int __rust_thunk___Z3foov() { return foo(); }
static_assert(CRUBIT_SIZEOF(struct MyTemplate<int>) == 4);
static_assert(alignof(struct MyTemplate<int>) == 4);
static_assert(CRUBIT_OFFSET_OF(value, struct MyTemplate<int>) == 0);
extern "C" void
__rust_thunk___ZN10MyTemplateIiEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<int>* __this) {
crubit::construct_at(__this);
}
extern "C" void
__rust_thunk___ZN10MyTemplateIiEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<int>* __this, struct MyTemplate<int>* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct MyTemplate<int>*
__rust_thunk___ZN10MyTemplateIiEaSERKS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<int>* __this, const struct MyTemplate<int>* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct MyTemplate<int>*
__rust_thunk___ZN10MyTemplateIiEaSEOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<int>* __this, struct MyTemplate<int>* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
extern "C" int const*
__rust_thunk___ZNK10MyTemplateIiE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
const struct MyTemplate<int>* __this) {
return &__this->get_field_value();
}
static_assert(CRUBIT_SIZEOF(struct MyTemplate<float>) == 4);
static_assert(alignof(struct MyTemplate<float>) == 4);
static_assert(CRUBIT_OFFSET_OF(value, struct MyTemplate<float>) == 0);
extern "C" void
__rust_thunk___ZN10MyTemplateIfEC1Ev__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<float>* __this) {
crubit::construct_at(__this);
}
extern "C" void
__rust_thunk___ZN10MyTemplateIfEC1EOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<float>* __this, struct MyTemplate<float>* __param_0) {
crubit::construct_at(__this, std::move(*__param_0));
}
extern "C" struct MyTemplate<float>*
__rust_thunk___ZN10MyTemplateIfEaSERKS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<float>* __this,
const struct MyTemplate<float>* __param_0) {
return &__this->operator=(*__param_0);
}
extern "C" struct MyTemplate<float>*
__rust_thunk___ZN10MyTemplateIfEaSEOS0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
struct MyTemplate<float>* __this, struct MyTemplate<float>* __param_0) {
return &__this->operator=(std::move(*__param_0));
}
extern "C" float const*
__rust_thunk___ZNK10MyTemplateIfE15get_field_valueEv__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3adoc_5fcomment_5fcc(
const struct MyTemplate<float>* __this) {
return &__this->get_field_value();
}
#pragma clang diagnostic pop