pub trait Gxa:
Sized
+ Default
+ Copy
+ From<u64> {
// Required method
fn u64(&self) -> u64;
// Provided methods
fn offset(&self) -> u64 { ... }
fn page_aligned(&self) -> bool { ... }
fn page_align(&self) -> Self { ... }
fn next_aligned_page(self) -> Self { ... }
}Expand description
A bunch of useful methods to manipulate 64-bit addresses of any kind.
Required Methods§
Provided Methods§
Sourcefn page_aligned(&self) -> bool
fn page_aligned(&self) -> bool
Is it page aligned?
Sourcefn page_align(&self) -> Self
fn page_align(&self) -> Self
Page-align it.
Sourcefn next_aligned_page(self) -> Self
fn next_aligned_page(self) -> Self
Get the next aligned page.
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.