Trait kdmp_parser::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Gxa for Gpa

source§

impl Gxa for Gva