#![cfg_attr(rustfmt, rustfmt::skip)]
use_prelude!();
mod void {
#[derive(Clone, Copy)]
#[allow(missing_debug_implementations)]
pub
struct CVoid {
_0: (),
}
}
pub(in crate) use void::CVoid;
unsafe
impl LegacyCType
for CVoid
{ __cfg_headers__! {
fn c_short_name_fmt (fmt: &'_ mut fmt::Formatter<'_>)
-> fmt::Result
{
fmt.write_str("void")
}
fn c_var_fmt (
fmt: &'_ mut fmt::Formatter<'_>,
var_name: &'_ str,
) -> fmt::Result
{
write!(fmt,
"void{sep}{}",
var_name,
sep = if var_name.is_empty() { "" } else { " " },
)
}
fn c_define_self (
_: &'_ mut dyn crate::headers::Definer,
) -> io::Result<()>
{
Ok(())
}
__cfg_csharp__! {
fn csharp_define_self (
_: &'_ mut dyn crate::headers::Definer,
) -> io::Result<()>
{
Ok(())
}
fn csharp_ty ()
-> rust::String
{
"void".into()
}
}
} type OPAQUE_KIND = crate::layout::OpaqueKind::Concrete; }
from_CType_impl_ReprC! { CVoid }
unsafe
impl ReprC
for ::core::ffi::c_void
{
type CLayout = CVoid;
fn is_valid (_: &'_ CVoid)
-> bool
{
panic!("Trying to construct a `c_void` is a logic error");
}
}
#[cfg(not(docs))]
ReprC! {
#[repr(C)]
#[derive(Debug)]
pub
struct Tuple1[T0] {
pub _0: T0,
}
}
ReprC! {
#[repr(C)]
#[derive(Debug)]
pub
struct Tuple2[T0, T1] {
pub _0: T0,
pub _1: T1,
}
}
#[cfg(not(docs))]
ReprC! {
#[repr(C)]
#[derive(Debug)]
pub
struct Tuple3[T0, T1, T2] {
pub _0: T0,
pub _1: T1,
pub _2: T2,
}
}
#[cfg(not(docs))]
ReprC! {
#[repr(C)]
#[derive(Debug)]
pub
struct Tuple4[T0, T1, T2, T3] {
pub _0: T0,
pub _1: T1,
pub _2: T2,
pub _3: T3,
}
}
#[cfg(not(docs))]
ReprC! {
#[repr(C)]
#[derive(Debug)]
pub
struct Tuple5[T0, T1, T2, T3, T4] {
pub _0: T0,
pub _1: T1,
pub _2: T2,
pub _3: T3,
pub _4: T4,
}
}
#[cfg(not(docs))]
ReprC! {
#[repr(C)]
#[derive(Debug)]
pub
struct Tuple6[T0, T1, T2, T3, T4, T5] {
pub _0: T0,
pub _1: T1,
pub _2: T2,
pub _3: T3,
pub _4: T4,
pub _5: T5,
}
}