| // 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:templates_source_order_cc |
| // Features: experimental, extern_c, supported |
| |
| #![rustfmt::skip] |
| #![feature(custom_inner_attributes, negative_impls, register_tool)] |
| #![allow(stable_features)] |
| #![no_std] |
| #![register_tool(__crubit)] |
| #![allow(improper_ctypes)] |
| #![allow(nonstandard_style)] |
| #![deny(warnings)] |
| |
| // Error while generating bindings for item 'MyTemplate': |
| // Class templates are not supported yet |
| |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "TopLevel")] |
| pub struct TopLevel { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for TopLevel {} |
| impl !Sync for TopLevel {} |
| forward_declare::unsafe_define!(forward_declare::symbol!("TopLevel"), crate::TopLevel); |
| |
| // Error while generating bindings for item 'TopLevel::TopLevel': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'TopLevel::TopLevel': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'TopLevel::TopLevel': |
| // Parameter #0 is not supported: Unsupported type 'TopLevel &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'TopLevel::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'TopLevel::operator=': |
| // Parameter #0 is not supported: Unsupported type 'TopLevel &&': Unsupported type: && without lifetime |
| |
| pub type Alias1 = crate::__CcTemplateInst10MyTemplateIiE; |
| |
| pub type Alias2 = crate::__CcTemplateInst10MyTemplateIfE; |
| |
| pub type Alias3 = crate::__CcTemplateInst10MyTemplateI8TopLevelE; |
| |
| pub type Alias4 = crate::__CcTemplateInst10MyTemplateIdE; |
| |
| pub type Alias5 = crate::__CcTemplateInst10MyTemplateIbE; |
| |
| pub type Alias6 = crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE; |
| |
| pub mod test_namespace_bindings { |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "test_namespace_bindings :: Inner")] |
| pub struct Inner { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for Inner {} |
| impl !Sync for Inner {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("test_namespace_bindings :: Inner"), |
| crate::test_namespace_bindings::Inner |
| ); |
| |
| // Error while generating bindings for item 'Inner::Inner': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'Inner::Inner': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'test_namespace_bindings::Inner::Inner': |
| // Parameter #0 is not supported: Unsupported type 'Inner &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'Inner::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'test_namespace_bindings::Inner::operator=': |
| // Parameter #0 is not supported: Unsupported type 'Inner &&': Unsupported type: && without lifetime |
| |
| pub type Alias7 = crate::__CcTemplateInst10MyTemplateIcE; |
| |
| pub type Alias8 = crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE; |
| |
| pub type Alias9 = crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE; |
| } |
| |
| // namespace test_namespace_bindings |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "MyTemplate < TopLevel >")] |
| pub struct __CcTemplateInst10MyTemplateI8TopLevelE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateI8TopLevelE {} |
| impl !Sync for __CcTemplateInst10MyTemplateI8TopLevelE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < TopLevel >"), |
| crate::__CcTemplateInst10MyTemplateI8TopLevelE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<TopLevel>::MyTemplate<TopLevel>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<TopLevel>::MyTemplate<TopLevel>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<TopLevel>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<TopLevel> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<TopLevel>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<TopLevel>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<TopLevel> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateI8TopLevelE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, mut t: crate::TopLevel) { |
| crate::detail::__rust_thunk___ZN10MyTemplateI8TopLevelE8processTES0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,&mut t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "MyTemplate < test_namespace_bindings :: Inner >")] |
| pub struct __CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < test_namespace_bindings :: Inner >"), |
| crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<test_namespace_bindings::Inner>::MyTemplate<test_namespace_bindings::Inner>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<test_namespace_bindings::Inner>::MyTemplate<test_namespace_bindings::Inner>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<test_namespace_bindings::Inner>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<Inner> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<test_namespace_bindings::Inner>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<test_namespace_bindings::Inner>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<Inner> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, mut t: crate::test_namespace_bindings::Inner) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIN23test_namespace_bindings5InnerEE8processTES1___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,&mut t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "MyTemplate < MyTemplate < TopLevel >>")] |
| pub struct __CcTemplateInst10MyTemplateIS_I8TopLevelEE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIS_I8TopLevelEE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIS_I8TopLevelEE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < MyTemplate < TopLevel >>"), |
| crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<TopLevel>>::MyTemplate<MyTemplate<TopLevel>>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<TopLevel>>::MyTemplate<MyTemplate<TopLevel>>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<TopLevel>>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<MyTemplate<TopLevel> > &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<TopLevel>>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<TopLevel>>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<MyTemplate<TopLevel> > &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIS_I8TopLevelEE { |
| #[inline(always)] |
| pub unsafe fn processT( |
| __this: *mut Self, |
| mut t: crate::__CcTemplateInst10MyTemplateI8TopLevelE, |
| ) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIS_I8TopLevelEE8processTES1___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,&mut t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "MyTemplate < MyTemplate < test_namespace_bindings :: Inner >>")] |
| pub struct __CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < MyTemplate < test_namespace_bindings :: Inner >>"), |
| crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<test_namespace_bindings::Inner>>::MyTemplate<MyTemplate<test_namespace_bindings::Inner>>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<test_namespace_bindings::Inner>>::MyTemplate<MyTemplate<test_namespace_bindings::Inner>>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<test_namespace_bindings::Inner>>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<MyTemplate<Inner> > &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<test_namespace_bindings::Inner>>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<MyTemplate<test_namespace_bindings::Inner>>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<MyTemplate<Inner> > &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE { |
| #[inline(always)] |
| pub unsafe fn processT( |
| __this: *mut Self, |
| mut t: crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE, |
| ) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIS_IN23test_namespace_bindings5InnerEEE8processTES2___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,&mut t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "MyTemplate < bool >")] |
| pub struct __CcTemplateInst10MyTemplateIbE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIbE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIbE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < bool >"), |
| crate::__CcTemplateInst10MyTemplateIbE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<bool>::MyTemplate<bool>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<bool>::MyTemplate<bool>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<bool>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<_Bool> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<bool>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<bool>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<_Bool> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIbE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, t: bool) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIbE8processTEb__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C)] |
| #[__crubit::annotate(cc_type = "MyTemplate < char >")] |
| pub struct __CcTemplateInst10MyTemplateIcE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIcE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIcE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < char >"), |
| crate::__CcTemplateInst10MyTemplateIcE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<char>::MyTemplate<char>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<char>::MyTemplate<char>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<char>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<char> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<char>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<char>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<char> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIcE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, t: ::core::ffi::c_char) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIcE8processTEc__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C, align(8))] |
| #[__crubit::annotate(cc_type = "MyTemplate < double >")] |
| pub struct __CcTemplateInst10MyTemplateIdE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 8], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIdE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIdE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < double >"), |
| crate::__CcTemplateInst10MyTemplateIdE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<double>::MyTemplate<double>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<double>::MyTemplate<double>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<double>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<double> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<double>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<double>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<double> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIdE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, t: f64) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIdE8processTEd__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C, align(4))] |
| #[__crubit::annotate(cc_type = "MyTemplate < float >")] |
| pub struct __CcTemplateInst10MyTemplateIfE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 4], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIfE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIfE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < float >"), |
| crate::__CcTemplateInst10MyTemplateIfE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<float>::MyTemplate<float>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<float>::MyTemplate<float>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<float>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<float> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<float>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<float>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<float> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIfE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, t: f32) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIfE8processTEf__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,t) |
| } |
| } |
| |
| /// 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 |
| #[derive(Clone, Copy)] |
| #[repr(C, align(4))] |
| #[__crubit::annotate(cc_type = "MyTemplate < int >")] |
| pub struct __CcTemplateInst10MyTemplateIiE { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 0], |
| /// Reason for representing this field as a blob of bytes: |
| /// Types of non-public C++ fields can be elided away |
| pub(crate) t: [::core::mem::MaybeUninit<u8>; 4], |
| } |
| impl !Send for __CcTemplateInst10MyTemplateIiE {} |
| impl !Sync for __CcTemplateInst10MyTemplateIiE {} |
| forward_declare::unsafe_define!( |
| forward_declare::symbol!("MyTemplate < int >"), |
| crate::__CcTemplateInst10MyTemplateIiE |
| ); |
| |
| // Error while generating bindings for item 'MyTemplate<int>::MyTemplate<int>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<int>::MyTemplate<int>': |
| // Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported |
| |
| // Error while generating bindings for item 'MyTemplate<int>::MyTemplate': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<int> &&': Unsupported type: && without lifetime |
| |
| // Error while generating bindings for item 'MyTemplate<int>::operator=': |
| // `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function. |
| |
| // Error while generating bindings for item 'MyTemplate<int>::operator=': |
| // Parameter #0 is not supported: Unsupported type 'MyTemplate<int> &&': Unsupported type: && without lifetime |
| |
| impl __CcTemplateInst10MyTemplateIiE { |
| #[inline(always)] |
| pub unsafe fn processT(__this: *mut Self, t: ::core::ffi::c_int) { |
| crate::detail::__rust_thunk___ZN10MyTemplateIiE8processTEi__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc(__this,t) |
| } |
| } |
| |
| mod detail { |
| #[allow(unused_imports)] |
| use super::*; |
| extern "C" { |
| pub(crate) fn __rust_thunk___ZN10MyTemplateI8TopLevelE8processTES0___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateI8TopLevelE, |
| t: &mut crate::TopLevel, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIN23test_namespace_bindings5InnerEE8processTES1___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE, |
| t: &mut crate::test_namespace_bindings::Inner, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIS_I8TopLevelEE8processTES1___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE, |
| t: &mut crate::__CcTemplateInst10MyTemplateI8TopLevelE, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIS_IN23test_namespace_bindings5InnerEEE8processTES2___2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE, |
| t: &mut crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIbE8processTEb__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIbE, |
| t: bool, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIcE8processTEc__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIcE, |
| t: ::core::ffi::c_char, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIdE8processTEd__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIdE, |
| t: f64, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIfE8processTEf__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIfE, |
| t: f32, |
| ); |
| pub(crate) fn __rust_thunk___ZN10MyTemplateIiE8processTEi__2f_2fthird_5fparty_2fcrubit_2frs_5fbindings_5ffrom_5fcc_2ftest_2fgolden_3atemplates_5fsource_5forder_5fcc( |
| __this: *mut crate::__CcTemplateInst10MyTemplateIiE, |
| t: ::core::ffi::c_int, |
| ); |
| } |
| } |
| |
| const _: () = { |
| assert!(::core::mem::size_of::<crate::TopLevel>() == 1); |
| assert!(::core::mem::align_of::<crate::TopLevel>() == 1); |
| static_assertions::assert_impl_all!(crate::TopLevel: Clone); |
| static_assertions::assert_impl_all!(crate::TopLevel: Copy); |
| static_assertions::assert_not_impl_any!(crate::TopLevel: Drop); |
| |
| assert!(::core::mem::size_of::<crate::test_namespace_bindings::Inner>() == 1); |
| assert!(::core::mem::align_of::<crate::test_namespace_bindings::Inner>() == 1); |
| static_assertions::assert_impl_all!(crate::test_namespace_bindings::Inner: Clone); |
| static_assertions::assert_impl_all!(crate::test_namespace_bindings::Inner: Copy); |
| static_assertions::assert_not_impl_any!(crate::test_namespace_bindings::Inner: Drop); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateI8TopLevelE>() == 1); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateI8TopLevelE>() == 1); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateI8TopLevelE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateI8TopLevelE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateI8TopLevelE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateI8TopLevelE, t) == 0); |
| |
| assert!( |
| ::core::mem::size_of::< |
| crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE, |
| >() == 1 |
| ); |
| assert!( |
| ::core::mem::align_of::< |
| crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE, |
| >() == 1 |
| ); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE: Drop); |
| assert!( |
| ::core::mem::offset_of!( |
| crate::__CcTemplateInst10MyTemplateIN23test_namespace_bindings5InnerEE, |
| t |
| ) == 0 |
| ); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE>() == 1); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE>() == 1); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIS_I8TopLevelEE, t) == 0); |
| |
| assert!( |
| ::core::mem::size_of::< |
| crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE, |
| >() == 1 |
| ); |
| assert!( |
| ::core::mem::align_of::< |
| crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE, |
| >() == 1 |
| ); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE: Drop); |
| assert!( |
| ::core::mem::offset_of!( |
| crate::__CcTemplateInst10MyTemplateIS_IN23test_namespace_bindings5InnerEEE, |
| t |
| ) == 0 |
| ); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIbE>() == 1); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIbE>() == 1); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIbE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIbE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIbE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIbE, t) == 0); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIcE>() == 1); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIcE>() == 1); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIcE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIcE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIcE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIcE, t) == 0); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIdE>() == 8); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIdE>() == 8); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIdE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIdE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIdE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIdE, t) == 0); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIfE>() == 4); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIfE>() == 4); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIfE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIfE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIfE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIfE, t) == 0); |
| |
| assert!(::core::mem::size_of::<crate::__CcTemplateInst10MyTemplateIiE>() == 4); |
| assert!(::core::mem::align_of::<crate::__CcTemplateInst10MyTemplateIiE>() == 4); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIiE: Clone); |
| static_assertions::assert_impl_all!(crate::__CcTemplateInst10MyTemplateIiE: Copy); |
| static_assertions::assert_not_impl_any!(crate::__CcTemplateInst10MyTemplateIiE: Drop); |
| assert!(::core::mem::offset_of!(crate::__CcTemplateInst10MyTemplateIiE, t) == 0); |
| }; |