[][src]Trait sanakirja::LoadPage

pub trait LoadPage {
    pub fn load_page(&self, off: u64) -> Result<Page, CRCError>;
pub fn root_(&self, num: usize) -> u64; }

Trait for loading a page and a root. Base trait to implement "storage engines" under Sanakirja.

Required methods

pub fn load_page(&self, off: u64) -> Result<Page, CRCError>[src]

Loading a page.

pub fn root_(&self, num: usize) -> u64[src]

Offset (in bytes, from the beginning of the file) to root number num.

Loading content...

Implementors

impl<E: Borrow<Env<Exclusive>>, A> LoadPage for MutTxn<E, A>[src]

impl<L, E: Borrow<Env<L>>> LoadPage for Txn<L, E>[src]

pub fn load_page(&self, off: u64) -> Result<Page, CRCError>[src]

Find the appropriate map segment

Loading content...