Function bitvec::ptr::check_alignment

source ·
pub fn check_alignment<M, T>(
    addr: Address<M, T>
) -> Result<Address<M, T>, MisalignError<T>>where
    M: Mutability,
Expand description

Ensures that an address is well-aligned to its referent type width.