Struct sanakirja_core::btree::page_unsized::Page [−][src]
Trait Implementations
impl<K: UnsizedStorable + ?Sized + Debug, V: UnsizedStorable + ?Sized + Debug> BTreeMutPage<K, V> for Page<K, V>
[src]
fn init(page: &mut MutPage)
[src]
type Saved = (*const K, *const V)
fn save_deleted_leaf_entry(k: &K, v: &V) -> Self::Saved
[src]
unsafe fn from_saved<'a>(s: &Self::Saved) -> (&'a K, &'a V)
[src]
fn put<'a, T: AllocPage>(
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::Error>
[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::Error>
unsafe fn put_mut(page: &mut MutPage, c: &Self::Cursor, k0: &K, v0: &V, r: u64)
[src]
unsafe fn set_left_child(page: &mut MutPage, c: &Self::Cursor, l: u64)
[src]
fn update_left_child<T: AllocPage>(
txn: &mut T,
page: CowPage,
mutable: bool,
c: &Self::Cursor,
l: u64
) -> Result<Ok, T::Error>
[src]
txn: &mut T,
page: CowPage,
mutable: bool,
c: &Self::Cursor,
l: u64
) -> Result<Ok, T::Error>
fn del<T: AllocPage>(
txn: &mut T,
page: CowPage,
mutable: bool,
c: &PageCursor,
l: u64
) -> Result<(MutPage, u64), T::Error>
[src]
txn: &mut T,
page: CowPage,
mutable: bool,
c: &PageCursor,
l: u64
) -> Result<(MutPage, u64), T::Error>
fn merge_or_rebalance<'a, T: AllocPage>(
txn: &mut T,
m: Concat<'a, K, V, Self>
) -> Result<Op<'a, T, K, V>, T::Error>
[src]
txn: &mut T,
m: Concat<'a, K, V, Self>
) -> Result<Op<'a, T, K, V>, T::Error>
impl<K: UnsizedStorable + ?Sized, V: UnsizedStorable + ?Sized> BTreePage<K, V> for Page<K, V>
[src]
fn is_empty(c: &Self::Cursor) -> bool
[src]
fn is_init(c: &Self::Cursor) -> bool
[src]
type Cursor = PageCursor
fn cursor_before(p: &CowPage) -> Self::Cursor
[src]
fn cursor_after(p: &CowPage) -> Self::Cursor
[src]
fn split_at(c: &Self::Cursor) -> (Self::Cursor, Self::Cursor)
[src]
fn move_next(c: &mut Self::Cursor) -> bool
[src]
fn move_prev(c: &mut Self::Cursor) -> bool
[src]
fn current<'a, T: LoadPage>(
txn: &T,
page: Page<'a>,
c: &Self::Cursor
) -> Option<(&'a K, &'a V, u64)>
[src]
txn: &T,
page: Page<'a>,
c: &Self::Cursor
) -> Option<(&'a K, &'a V, u64)>
fn left_child(page: Page<'_>, c: &Self::Cursor) -> u64
[src]
fn right_child(page: Page<'_>, c: &Self::Cursor) -> u64
[src]
fn set_cursor<'a, T: LoadPage>(
txn: &'a T,
page: Page<'_>,
c: &mut PageCursor,
k0: &K,
v0: Option<&V>
) -> Result<(&'a K, &'a V, u64), usize>
[src]
txn: &'a T,
page: Page<'_>,
c: &mut PageCursor,
k0: &K,
v0: Option<&V>
) -> Result<(&'a K, &'a V, u64), usize>
fn cursor_first(p: &CowPage) -> Self::Cursor
[src]
fn cursor_last(p: &CowPage) -> Self::Cursor
[src]
fn next<'b, T: LoadPage>(
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)>
[src]
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)>
fn prev<'b, T: LoadPage>(
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)>
[src]
txn: &T,
p: Page<'b>,
c: &mut Self::Cursor
) -> Option<(&'b K, &'b V, u64)>
impl<K: Debug + ?Sized, V: Debug + ?Sized> Debug for Page<K, V>
[src]
Auto Trait Implementations
impl<K: ?Sized, V: ?Sized> Send for Page<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K: ?Sized, V: ?Sized> Sync for Page<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K: ?Sized, V: ?Sized> Unpin for Page<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
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>,