Struct sanakirja::CowPage[][src]

#[repr(C)]
pub struct CowPage { pub data: *mut u8, pub offset: u64, }
Expand description

Representation of a mutable or shared page. This is an owned page (like Vec in Rust’s std), but we do not know whether we can mutate it or not.

The least-significant bit of the first byte of each page is 1 if and only if the page was allocated by the current transaction (and hence isn’t visible to any other transaction, meaning we can write on it).

Fields

data: *mut u8offset: u64

Implementations

Borrows the page.

Checks the dirty bit of a page.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.