zerocopy::util

Function aligned_to

Source
pub(crate) fn aligned_to<T: AsAddress, U>(t: T) -> bool
Expand description

Is t aligned to mem::align_of::<U>()?