wasmer_artifact/
funcbody.rs

1/// A placeholder byte-sized type which is just used to provide some amount of type
2/// safety when dealing with pointers to JIT-compiled function bodies. Note that it's
3/// deliberately not Copy, as we shouldn't be carelessly copying function body bytes
4/// around.
5#[repr(C)]
6pub struct VMFunctionBody(u8);
7
8#[cfg(test)]
9mod test_vmfunction_body {
10    use super::VMFunctionBody;
11    use std::mem::size_of;
12
13    #[test]
14    fn check_vmfunction_body_offsets() {
15        assert_eq!(size_of::<VMFunctionBody>(), 1);
16    }
17}