Function memory_addr::is_aligned
source · pub const fn is_aligned(addr: usize, align: usize) -> bool
Expand description
Checks whether the address has the demanded alignment.
Equivalent to addr % align == 0
, but the alignment must be a power of two.