briny 0.7.2

Low-level enforcement of memory layout integrity
Documentation
//! Core primitives, byte casting, and safe wrappers for handling raw bytes.
//!
//! # Safety
//!
//! This is the only module containing unsafe code, but it has a lot of it!
//! The unsafe code in this module is for good reason though - It allows for
//! casting between arbitrary types and making safe abstractions over unsafe ones.
//!
//! Traits like `Pod` provide useful methods to handle this data safely.

pub mod cast;

mod nonzero_copy;

pub use nonzero_copy::MaybeNullCopy;

#[deprecated]
pub mod nonzero;

/// Thin wrapper over `T` that safely checks when it is initialized.
#[allow(deprecated)]
pub type MaybeNull<T> = nonzero::MaybeNull<T>;