File: ignore.rs

package info (click to toggle)
rust-cbindgen 0.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: ansic: 15; makefile: 11
file content (52 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (3)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/// cbindgen:ignore
#[no_mangle]
pub extern "C" fn root() {}

/// cbindgen:ignore
///
/// Something else.
#[no_mangle]
pub extern "C" fn another_root() {}

#[no_mangle]
pub extern "C" fn no_ignore_root() {}

/// cbindgen:ignore
#[repr(C)]
pub struct IgnoreStruct {}

pub struct IgnoreStructWithImpl;

/// cbindgen:ignore
impl IgnoreStructWithImpl {
    #[no_mangle]
    pub extern "C" fn ignore_associated_method() {}

    pub const IGNORE_INNER_CONST: u32 = 0;
}

/// cbindgen:ignore
pub const IGNORE_CONST: u32 = 0;

pub const NO_IGNORE_CONST: u32 = 0;

pub struct NoIgnoreStructWithImpl;

impl NoIgnoreStructWithImpl {
    /// cbindgen:ignore
    #[no_mangle]
    pub extern "C" fn ignore_associated_method() {}

    #[no_mangle]
    pub extern "C" fn no_ignore_associated_method() {}

    /// cbindgen:ignore
    pub const IGNORE_INNER_CONST: u32 = 0;

    pub const NO_IGNORE_INNER_CONST: u32 = 0;
}

/// cbindgen:ignore
enum IgnoreEnum {}

enum NoIgnoreEnum {}