[][src]Struct memory_pager::Page

pub struct Page { /* fields omitted */ }

Memory pages returned by Pager.

Methods

impl Page[src]

pub fn new(index: usize, buf: Vec<u8>) -> Self[src]

Create a new instance.

pub fn offset(&self) -> usize[src]

Byte offset for the start of the Page relative to all other Page instances.

Trait Implementations

impl Clone for Page[src]

impl DerefMut for Page[src]

impl Deref for Page[src]

type Target = [u8]

The resulting type after dereferencing.

impl Debug for Page[src]

Auto Trait Implementations

impl Unpin for Page

impl Sync for Page

impl Send for Page

impl UnwindSafe for Page

impl RefUnwindSafe for Page

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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