Sign in
third-party-mirror
/
cbindgen
/
9a26cd0114a633fa05ece30bd3f1b13149f496f2
/
.
/
cbindgen-0.24.5
/
tests
/
rust
/
mangle.rs
blob: 1ac7e13362b64d6a11c993075c2df696fff47683 [
file
] [
log
] [
blame
]
#[
repr
(
C
)]
pub
struct
Foo
<
T
>
{
a
:
T
,
}
pub
type
Boo
=
Foo
<
u8
>;
/// cbindgen:prefix-with-name=true
#[
repr
(
C
)]
pub
enum
Bar
{
Some
,
Thing
,
}
#[
no_mangle
]
pub
extern
"C"
fn
root
(
x
:
Boo
,
y
:
Bar
,
)
{
}