bitvec::ptr

Function 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.