Coverage Report

Created: 2025-06-16 06:50

/rust/git/checkouts/mozjs-fa11ffc7d4f1cc2d/d90edd1/mozjs-sys/src/glue.rs
Line
Count
Source (jump to first uncovered line)
1
//! Rust wrappers for mozjs's glue module
2
3
mod generated {
4
    #![allow(non_upper_case_globals)]
5
    #![allow(non_camel_case_types)]
6
    #![allow(non_snake_case)]
7
    include!(concat!(env!("OUT_DIR"), "/build/gluebindings.rs"));
8
}
9
10
use core::mem;
11
12
pub use generated::root::*;
13
14
pub type EncodedStringCallback = fn(*const core::ffi::c_char);
15
16
// manual glue stuff
17
unsafe impl Sync for ProxyTraps {}
18
19
impl Default for JobQueueTraps {
20
0
    fn default() -> JobQueueTraps {
21
0
        unsafe { mem::zeroed() }
22
0
    }
23
}
24
25
impl Default for ProxyTraps {
26
0
    fn default() -> ProxyTraps {
27
0
        unsafe { mem::zeroed() }
28
0
    }
29
}
30
31
impl Default for WrapperProxyHandler {
32
0
    fn default() -> WrapperProxyHandler {
33
0
        unsafe { mem::zeroed() }
34
0
    }
35
}
36
37
impl Default for ForwardingProxyHandler {
38
0
    fn default() -> ForwardingProxyHandler {
39
0
        unsafe { mem::zeroed() }
40
0
    }
41
}