Skip to main content

View

Trait View 

Source
pub trait View {
    // Required method
    fn load(&self, address: u64) -> u64;

    // Provided method
    fn load_word(&self, base: u64, word: u64) -> u64 { ... }
}
Expand description

Read-only word access to queues and tasks.

Required Methods§

Source

fn load(&self, address: u64) -> u64

Load the word at address.

Provided Methods§

Source

fn load_word(&self, base: u64, word: u64) -> u64

Load the word at word of the node or queue at base. A memory that translates addresses can translate base once for all of a node’s words.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: View> View for &T

Source§

fn load(&self, address: u64) -> u64

Implementors§