[][src]Struct random_access_memory::RandomAccessMemory

pub struct RandomAccessMemory { /* fields omitted */ }

Main constructor.

Methods

impl RandomAccessMemory[src]

pub fn new(page_size: usize) -> Self[src]

Create a new instance.

pub fn default() -> Self[src]

Create a new instance with a 1mb page size.

pub fn with_buffers(page_size: usize, buffers: Vec<Vec<u8>>) -> Self[src]

Create a new instance, but pass the initial buffers to the constructor.

Trait Implementations

impl Debug for RandomAccessMemory[src]

impl RandomAccess for RandomAccessMemory[src]

type Error = Box<dyn Error + Send + Sync>

An error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.