Trait kernel::memory_management::memory_layout::AlignMem
source · pub trait AlignMem: Sized {
// Required methods
fn align_up(self, alignment: usize) -> Self;
fn align_down(self, alignment: usize) -> Self;
fn is_aligned(&self, alignment: usize) -> bool;
fn align_range(self, size: usize, alignment: usize) -> (Self, usize, usize);
}
Required Methods§
fn align_up(self, alignment: usize) -> Self
fn align_down(self, alignment: usize) -> Self
fn is_aligned(&self, alignment: usize) -> bool
fn align_range(self, size: usize, alignment: usize) -> (Self, usize, usize)
Object Safety§
This trait is not object safe.