Struct sanakirja_core::CowPage
source · #[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 u8
§offset: u64
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more