cast::revm::interpreter::primitives::bitvec::ptr

Function check_alignment

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.