pub struct WriteBatchInternal {}Expand description
| WriteBatchInternal provides static | methods for manipulating a WriteBatch | that we don’t want in the public WriteBatch | interface. |
Implementations§
Source§impl WriteBatchInternal
impl WriteBatchInternal
pub fn insert_into( &mut self, b: *const WriteBatch, memtable: *mut MemTable, ) -> Status
pub fn set_contents(&mut self, b: *mut WriteBatch, contents: &Slice)
pub fn append(&mut self, dst: *mut WriteBatch, src: *const WriteBatch)
Sourcepub fn count(&mut self, b: *const WriteBatch) -> i32
pub fn count(&mut self, b: *const WriteBatch) -> i32
| Return the number of entries in the batch. |
Sourcepub fn set_count(&mut self, b: *mut WriteBatch, n: i32)
pub fn set_count(&mut self, b: *mut WriteBatch, n: i32)
| Set the count for the number of entries | in the batch. |
Sourcepub fn sequence(&mut self, b: *const WriteBatch) -> u64
pub fn sequence(&mut self, b: *const WriteBatch) -> u64
| Return the sequence number for the start | of this batch. |
Sourcepub fn set_sequence(&mut self, b: *mut WriteBatch, seq: u64)
pub fn set_sequence(&mut self, b: *mut WriteBatch, seq: u64)
| Store the specified number as the sequence | number for the start of this batch. |
pub fn contents(batch: *const WriteBatch) -> Slice
pub fn byte_size(batch: *const WriteBatch) -> usize
Auto Trait Implementations§
impl Freeze for WriteBatchInternal
impl RefUnwindSafe for WriteBatchInternal
impl Send for WriteBatchInternal
impl Sync for WriteBatchInternal
impl Unpin for WriteBatchInternal
impl UnwindSafe for WriteBatchInternal
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