Skip to main content

Mappable

Trait Mappable 

Source
pub trait Mappable {
    // Required methods
    fn virtual_size(&self, frame_count: usize) -> NonZero<usize>;
    fn base_virtual_offset(&self) -> isize;
}
Available on crate feature full only.
Expand description

Basic operations to decide how to map memory together.

See the module level documentation for more information.

Required Methods§

Source

fn virtual_size(&self, frame_count: usize) -> NonZero<usize>

The number of pages required to create a mapping with frame_count frames.

Source

fn base_virtual_offset(&self) -> isize

The number of pages to offset the physical memory into the allocated virtual memory.

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: ?Sized + Mappable> Mappable for Box<T>

Source§

fn virtual_size(&self, frame_count: usize) -> NonZero<usize>

Source§

fn base_virtual_offset(&self) -> isize

Implementors§