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.
pub fn check_alignment<M, T>(
addr: Address<M, T>,
) -> Result<Address<M, T>, MisalignError<T>>where
M: Mutability,
Ensures that an address is well-aligned to its referent type width.