pub struct EventInternalNode {
pub keys: Vec<Position>,
pub child_ids: Vec<PageID>,
}Fields§
§keys: Vec<Position>§child_ids: Vec<PageID>Implementations§
Source§impl EventInternalNode
impl EventInternalNode
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>
pub fn replace_last_child_id( &mut self, old_id: PageID, new_id: PageID, ) -> DcbResult<()>
pub fn append_promoted_key_and_page_id( &mut self, promoted_key: Position, promoted_page_id: PageID, ) -> DcbResult<()>
pub fn split_off(&mut self) -> DcbResult<(Position, Vec<Position>, Vec<PageID>)>
Trait Implementations§
Source§impl Clone for EventInternalNode
impl Clone for EventInternalNode
Source§fn clone(&self) -> EventInternalNode
fn clone(&self) -> EventInternalNode
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 EventInternalNode
impl Debug for EventInternalNode
impl Eq for EventInternalNode
Source§impl PartialEq for EventInternalNode
impl PartialEq for EventInternalNode
impl StructuralPartialEq for EventInternalNode
Auto Trait Implementations§
impl Freeze for EventInternalNode
impl RefUnwindSafe for EventInternalNode
impl Send for EventInternalNode
impl Sync for EventInternalNode
impl Unpin for EventInternalNode
impl UnsafeUnpin for EventInternalNode
impl UnwindSafe for EventInternalNode
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