Skip to main content

is_aligned

Function is_aligned 

Source
pub fn is_aligned<U: Unsigned>(align: U, v: U) -> bool
Expand description

Check if the given value is aligned with the given align.

Note: The given align must be a power of 2.