| // 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:private_method_cc |
| |
| #![rustfmt::skip] |
| #![feature(allocator_api, cfg_sanitize, custom_inner_attributes, negative_impls)] |
| #![allow(stable_features)] |
| #![no_std] |
| #![allow(improper_ctypes)] |
| #![allow(nonstandard_style)] |
| #![allow(dead_code, unused_mut)] |
| #![deny(warnings)] |
| |
| // Error while generating bindings for class 'Ptr': |
| // Class templates are not supported yet |
| |
| #[derive(Clone, Copy, ::ctor::MoveAndAssignViaCopy)] |
| #[repr(C)] |
| ///CRUBIT_ANNOTATE: cpp_type=Outer |
| pub struct Outer { |
| __non_field_data: [::core::mem::MaybeUninit<u8>; 1], |
| } |
| impl !Send for Outer {} |
| impl !Sync for Outer {} |
| unsafe impl ::cxx::ExternType for Outer { |
| type Id = ::cxx::type_id!("Outer"); |
| type Kind = ::cxx::kind::Trivial; |
| } |
| |
| impl Default for Outer { |
| #[inline(always)] |
| fn default() -> Self { |
| let mut tmp = ::core::mem::MaybeUninit::<Self>::zeroed(); |
| unsafe { |
| crate::detail::__rust_thunk___ZN5OuterC1Ev(&raw mut tmp as *mut _); |
| tmp.assume_init() |
| } |
| } |
| } |
| |
| mod detail { |
| #[allow(unused_imports)] |
| use super::*; |
| unsafe extern "C" { |
| pub(crate) unsafe fn __rust_thunk___ZN5OuterC1Ev(__this: *mut ::core::ffi::c_void); |
| } |
| } |
| |
| const _: () = { |
| assert!(::core::mem::size_of::<crate::Outer>() == 1); |
| assert!(::core::mem::align_of::<crate::Outer>() == 1); |
| static_assertions::assert_impl_all!(crate::Outer: Copy,Clone); |
| static_assertions::assert_not_impl_any!(crate::Outer: Drop); |
| }; |