1 2 3 4 5 6 7 8 9 10 11 12 13
#[cxx::bridge] pub mod ffi { unsafe extern "C++" { include!("LIEF/rust/Abstract/Function.hpp"); type AbstractFunction; fn address(self: &AbstractFunction) -> u64; fn flags(self: &AbstractFunction) -> u32; } impl UniquePtr<AbstractFunction> {} }