Function bytemuck::internal::is_aligned_to

source ·
pub(crate) fn is_aligned_to(ptr: *const (), align: usize) -> bool
Expand description

Checks if ptr is aligned to an align memory boundary.

§Panics

  • If align is not a power of two. This includes when align is zero.