nucleo-l053r8-benches/crates/crc/src/rs/ffi/mod.rs

9 lines
167 B
Rust
Executable file

mod crc32;
use core::ffi::c_void;
pub use crc32::*;
#[inline]
pub(crate) fn ref_to_voidptr<T: ?Sized>(r: &T) -> *const c_void {
r as *const T as *const c_void
}