blob: b89b9d352f2721173bbd39e7af42f434f59516b9 [file] [log] [blame]
Googler1b90d412022-09-26 08:49:05 -07001// Part of the Crubit project, under the Apache License v2.0 with LLVM
2// Exceptions. See /LICENSE for license information.
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
Lukasz Anforowicz19e057d2022-10-28 12:03:23 -07005// Automatically @generated Rust bindings for the following C++ target:
Googler1b90d412022-09-26 08:49:05 -07006// //rs_bindings_from_cc/test/golden:private_method_cc
Devin Jeanpierre6a3a2d22023-12-19 16:28:27 -08007// Features: experimental, extern_c, supported
Lukasz Anforowicz19e057d2022-10-28 12:03:23 -07008
Devin Jeanpierre43356432023-01-13 12:39:02 -08009#![rustfmt::skip]
Devin Jeanpierre46427d52023-12-08 06:50:27 -080010#![feature(custom_inner_attributes, negative_impls, register_tool)]
Lukasz Anforowicz16889da2022-10-06 13:37:48 -070011#![allow(stable_features)]
Googler61afe912023-03-03 13:59:15 -080012#![no_std]
Devin Jeanpierre162d21f2023-11-21 15:14:00 -080013#![register_tool(__crubit)]
Lukasz Anforowicz4bb78a72023-03-06 14:10:37 -080014#![allow(improper_ctypes)]
Devin Jeanpierre989df112024-01-30 02:06:11 -080015#![allow(nonstandard_style)]
Googler1b90d412022-09-26 08:49:05 -070016#![deny(warnings)]
17
Googler1b90d412022-09-26 08:49:05 -070018// Error while generating bindings for item 'Ptr':
19// Class templates are not supported yet
20
Devin Jeanpierre0be4a3a2023-11-28 17:20:36 -080021#[derive(Clone, Copy)]
Googler1b90d412022-09-26 08:49:05 -070022#[repr(C)]
Devin Jeanpierre162d21f2023-11-21 15:14:00 -080023#[__crubit::annotate(cc_type = "Outer")]
Googler1b90d412022-09-26 08:49:05 -070024pub struct Outer {
Googlerbed0a2a2023-03-01 11:53:43 -080025 __non_field_data: [::core::mem::MaybeUninit<u8>; 1],
Googler1b90d412022-09-26 08:49:05 -070026}
Devin Jeanpierre46427d52023-12-08 06:50:27 -080027impl !Send for Outer {}
28impl !Sync for Outer {}
Googler1b90d412022-09-26 08:49:05 -070029forward_declare::unsafe_define!(forward_declare::symbol!("Outer"), crate::Outer);
30
Googler1b90d412022-09-26 08:49:05 -070031// Error while generating bindings for item 'Outer::Outer':
32// Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported
33
Googler1b90d412022-09-26 08:49:05 -070034// Error while generating bindings for item 'Outer::Outer':
35// Unsafe constructors (e.g. with no elided or explicit lifetimes) are intentionally not supported
36
Googler1b90d412022-09-26 08:49:05 -070037// Error while generating bindings for item 'Outer::Outer':
Googler030a2a42023-01-23 05:28:41 -080038// Parameter #0 is not supported: Unsupported type 'Outer &&': Unsupported type: && without lifetime
Googler1b90d412022-09-26 08:49:05 -070039
Googler1b90d412022-09-26 08:49:05 -070040// Error while generating bindings for item 'Outer::operator=':
41// `self` has no lifetime. Use lifetime annotations or `#pragma clang lifetime_elision` to create bindings for this function.
42
Googler1b90d412022-09-26 08:49:05 -070043// Error while generating bindings for item 'Outer::operator=':
Googler030a2a42023-01-23 05:28:41 -080044// Parameter #0 is not supported: Unsupported type 'Outer &&': Unsupported type: && without lifetime
Googler1b90d412022-09-26 08:49:05 -070045
Googler1b90d412022-09-26 08:49:05 -070046const _: () = {
Devin Jeanpierre0383d992024-02-27 13:05:38 -080047 assert!(::core::mem::size_of::<crate::Outer>() == 1);
48 assert!(::core::mem::align_of::<crate::Outer>() == 1);
Devin Jeanpierre415c9482024-02-27 14:31:06 -080049 static_assertions::assert_impl_all!(crate::Outer: Clone);
50 static_assertions::assert_impl_all!(crate::Outer: Copy);
51 static_assertions::assert_not_impl_any!(crate::Outer: Drop);
Googler1b90d412022-09-26 08:49:05 -070052};