pub struct TrackingInternalNode {
pub keys: Vec<String>,
pub child_ids: Vec<PageID>,
}Fields§
§keys: Vec<String>§child_ids: Vec<PageID>Implementations§
Source§impl TrackingInternalNode
impl TrackingInternalNode
pub fn child_index_for_key(&self, key: &str) -> usize
pub fn replace_child_id_at( &mut self, idx: usize, old_id: PageID, new_id: PageID, ) -> DcbResult<()>
pub fn insert_promoted_at( &mut self, idx: usize, key: String, right_child: PageID, )
Sourcepub fn split_off(&mut self) -> DcbResult<(String, Vec<String>, Vec<PageID>)>
pub fn split_off(&mut self) -> DcbResult<(String, Vec<String>, Vec<PageID>)>
Split this internal node around the middle key. Returns (promoted_key, right_keys, right_child_ids).
pub fn new() -> Self
pub fn calc_serialized_size(&self) -> usize
pub fn serialize_into(&self, buf: &mut [u8]) -> DcbResult<usize>
pub fn from_slice(slice: &[u8]) -> DcbResult<Self>
Trait Implementations§
Source§impl Clone for TrackingInternalNode
impl Clone for TrackingInternalNode
Source§fn clone(&self) -> TrackingInternalNode
fn clone(&self) -> TrackingInternalNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackingInternalNode
impl Debug for TrackingInternalNode
impl Eq for TrackingInternalNode
Source§impl PartialEq for TrackingInternalNode
impl PartialEq for TrackingInternalNode
impl StructuralPartialEq for TrackingInternalNode
Auto Trait Implementations§
impl Freeze for TrackingInternalNode
impl RefUnwindSafe for TrackingInternalNode
impl Send for TrackingInternalNode
impl Sync for TrackingInternalNode
impl Unpin for TrackingInternalNode
impl UnsafeUnpin for TrackingInternalNode
impl UnwindSafe for TrackingInternalNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more