[−][src]Trait pelite::util::AlignTo
Helper to implement generic alignment operator.
Associated Types
type TAlign
Required methods
fn align_to(self, align: Self::TAlign) -> Self
Aligns the given value to a multiple of the align value.
Debug asserts that align is a power of two, otherwise calculates an incorrect result.
fn aligned_to(self, align: Self::TAlign) -> bool
Checks if the given value is aligned to a multiple of the align value.
Debug asserts that align is a power of two, otherwise calculates an incorrect result.