Gxa

Trait Gxa 

Source
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§

Source

fn u64(&self) -> u64

Get the underlying u64 out of it.

Provided Methods§

Source

fn offset(&self) -> u64

Get the page offset.

Source

fn page_aligned(&self) -> bool

Is it page aligned?

Source

fn page_align(&self) -> Self

Page-align it.

Source

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.

Implementors§

Source§

impl Gxa for Gpa

Source§

impl Gxa for Gva