Debian Codegraph @

.cargo/vendor/cbindgen/tests/rust/cell.rs

raw
1 #[repr(C)]
2 pub struct MyStruct {
3 number: std::cell::Cell<i32>,
4 }
5
6 pub struct NotReprC<T> { inner: T }
7
8 pub type Foo = NotReprC<std::cell::RefCell<i32>>;
9
10 #[no_mangle]
11 pub extern "C" fn root(a: &Foo, with_cell: &MyStruct) {}