bytemuck::internal

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