Struct sanakirja::btree::page::Page [−][src]
Empty type implementing BTreePage
and BTreeMutPage
.
Trait Implementations
impl<K, V> BTreeMutPage<K, V> for Page<K, V> where
K: Storable + Debug,
V: Storable + Debug,
[src]
K: Storable + Debug,
V: Storable + Debug,
pub fn init(page: &mut MutPage)
[src]
type Saved = (K, V)
pub fn save_deleted_leaf_entry(
k: &K,
v: &V
) -> <Page<K, V> as BTreeMutPage<K, V>>::Saved
[src]
k: &K,
v: &V
) -> <Page<K, V> as BTreeMutPage<K, V>>::Saved
pub unsafe fn from_saved<'a>(
s: &<Page<K, V> as BTreeMutPage<K, V>>::Saved
) -> (&'a K, &'a V)
[src]
s: &<Page<K, V> as BTreeMutPage<K, V>>::Saved
) -> (&'a K, &'a V)
pub fn put<T>(
txn: &mut T,
page: CowPage,
mutable: bool,
replace: bool,
c: &PageCursor,
k0: &'a K,
v0: &'a V,
k1v1: Option<(&'a K, &'a V)>,
l: u64,
r: u64
) -> Result<Put<'a, K, V>, <T as LoadPage>::Error> where
T: AllocPage,
[src]
txn: &mut T,
page: CowPage,
mutable: bool,
replace: bool,
c: &PageCursor,
k0: &'a K,
v0: &'a V,
k1v1: Option<(&'a K, &'a V)>,
l: u64,
r: u64
) -> Result<Put<'a, K, V>, <T as LoadPage>::Error> where
T: AllocPage,
pub unsafe fn put_mut(
page: &mut MutPage,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor,
k0: &K,
v0: &V,
r: u64
)
[src]
page: &mut MutPage,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor,
k0: &K,
v0: &V,
r: u64
)
pub unsafe fn set_left_child(
page: &mut MutPage,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor,
l: u64
)
[src]
page: &mut MutPage,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor,
l: u64
)
pub fn update_left_child<T>(
txn: &mut T,
page: CowPage,
mutable: bool,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor,
l: u64
) -> Result<Ok, <T as LoadPage>::Error> where
T: AllocPage,
[src]
txn: &mut T,
page: CowPage,
mutable: bool,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor,
l: u64
) -> Result<Ok, <T as LoadPage>::Error> where
T: AllocPage,
pub fn del<T>(
txn: &mut T,
page: CowPage,
mutable: bool,
c: &PageCursor,
l: u64
) -> Result<(MutPage, u64), <T as LoadPage>::Error> where
T: AllocPage,
[src]
txn: &mut T,
page: CowPage,
mutable: bool,
c: &PageCursor,
l: u64
) -> Result<(MutPage, u64), <T as LoadPage>::Error> where
T: AllocPage,
pub fn merge_or_rebalance<T>(
txn: &mut T,
m: Concat<'a, K, V, Page<K, V>>
) -> Result<Op<'a, T, K, V>, <T as LoadPage>::Error> where
T: AllocPage,
[src]
txn: &mut T,
m: Concat<'a, K, V, Page<K, V>>
) -> Result<Op<'a, T, K, V>, <T as LoadPage>::Error> where
T: AllocPage,
impl<K, V> BTreePage<K, V> for Page<K, V> where
K: Storable,
V: Storable,
[src]
K: Storable,
V: Storable,
type Cursor = PageCursor
pub fn is_empty(c: &<Page<K, V> as BTreePage<K, V>>::Cursor) -> bool
[src]
pub fn is_init(c: &<Page<K, V> as BTreePage<K, V>>::Cursor) -> bool
[src]
pub fn cursor_before(p: &CowPage) -> <Page<K, V> as BTreePage<K, V>>::Cursor
[src]
pub fn cursor_after(p: &CowPage) -> <Page<K, V> as BTreePage<K, V>>::Cursor
[src]
pub fn split_at(
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> (<Page<K, V> as BTreePage<K, V>>::Cursor, <Page<K, V> as BTreePage<K, V>>::Cursor)
[src]
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> (<Page<K, V> as BTreePage<K, V>>::Cursor, <Page<K, V> as BTreePage<K, V>>::Cursor)
pub fn move_next(c: &mut <Page<K, V> as BTreePage<K, V>>::Cursor) -> bool
[src]
pub fn move_prev(c: &mut <Page<K, V> as BTreePage<K, V>>::Cursor) -> bool
[src]
pub fn current<T>(
_txn: &T,
page: Page<'a>,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> Option<(&'a K, &'a V, u64)> where
T: LoadPage,
[src]
_txn: &T,
page: Page<'a>,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> Option<(&'a K, &'a V, u64)> where
T: LoadPage,
pub fn left_child(
page: Page<'_>,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> u64
[src]
page: Page<'_>,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> u64
pub fn right_child(
page: Page<'_>,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> u64
[src]
page: Page<'_>,
c: &<Page<K, V> as BTreePage<K, V>>::Cursor
) -> u64
pub fn set_cursor<T>(
txn: &'a T,
page: Page<'_>,
c: &mut PageCursor,
k0: &K,
v0: Option<&V>
) -> Result<(&'a K, &'a V, u64), usize> where
T: LoadPage,
[src]
txn: &'a T,
page: Page<'_>,
c: &mut PageCursor,
k0: &K,
v0: Option<&V>
) -> Result<(&'a K, &'a V, u64), usize> where
T: LoadPage,
pub fn cursor_first(p: &CowPage) -> Self::Cursor
[src]
pub fn cursor_last(p: &CowPage) -> Self::Cursor
[src]
pub fn next<T>(
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)> where
T: LoadPage,
[src]
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)> where
T: LoadPage,
pub fn prev<T>(
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)> where
T: LoadPage,
[src]
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)> where
T: LoadPage,
impl<K, V> Debug for Page<K, V> where
K: Debug,
V: Debug,
[src]
K: Debug,
V: Debug,
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Page<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Page<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Page<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Page<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Page<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,