pub trait Memory {
    type Error;

    fn memory(&self) -> &[u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
    fn memory_mut(&mut self) -> &mut [u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
    fn set_len(&mut self, size: usize) -> Result<(), Self::Error>;
}
Expand description

A type that manages the memory available to a tree.

Required Associated Types

The error a backend can return.

Required Methods

Return a read-only slice of the entire memory managed by this backend.

Return a writeable slice of the entire memory managed by this backend.

Set the size of the memory managed by this backend.

Implementations on Foreign Types

Implementors