firehazard 0.0.0-2022-09-10

Unopinionated low level API bindings focused on soundness, safety, and stronger types over raw FFI.
Documentation
1
2
3
4
5
6
7
mod bits32;                     pub(crate) use bits32::*;
pub(crate) mod partition;
mod provenance;                 pub(crate) use provenance::*;

#[allow(dead_code)] // XXX: Unlike the pending nightly fn, this acquires safety by sacrificing `?Sized` support.
pub(crate) const fn size_of_val_raw_sized<T>(_: *const T) -> usize { core::mem::size_of::<T>() }
pub(crate) fn none2null<T>(_: Option<core::convert::Infallible>) -> *mut T { core::ptr::null_mut() }