pub trait Align: Clone + Copy{
// Provided methods
fn align_down(self, align: usize) -> Self
where Self: From<usize> { ... }
fn align_up(self, align: usize) -> Self
where Self: From<usize> { ... }
fn is_aligned_4k(self) -> bool { ... }
fn is_aligned_to(self, align: usize) -> bool { ... }
}
Provided Methods§
fn align_down(self, align: usize) -> Self
fn align_up(self, align: usize) -> Self
fn is_aligned_4k(self) -> bool
fn is_aligned_to(self, align: usize) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.