File: struct_cycle.rs

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[cxx::bridge]
mod ffi {
    struct Node0 {
        i: i32,
    }

    struct Node1 {
        node2: Node2,
        vec: Vec<Node3>,
    }

    struct Node2 {
        node4: Node4,
    }

    struct Node3 {
        node1: Node1,
    }

    struct Node4 {
        node0: Node0,
        node5: Node5,
    }

    struct Node5 {
        node2: Node2,
    }

    struct Node6 {
        node2: Node2,
    }
}

fn main() {}