pub struct VersionEdit { /* private fields */ }
Expand description
Implementations§
Source§impl VersionEdit
impl VersionEdit
pub fn set_comparator_name(&mut self, name: &Slice)
pub fn set_log_number(&mut self, num: u64)
pub fn set_prev_log_number(&mut self, num: u64)
pub fn set_next_file(&mut self, num: u64)
pub fn set_last_sequence(&mut self, seq: SequenceNumber)
pub fn set_compact_pointer(&mut self, level: i32, key_: &InternalKey)
Sourcepub fn add_file(
&mut self,
level: i32,
file: u64,
file_size: u64,
smallest: &InternalKey,
largest: &InternalKey,
)
pub fn add_file( &mut self, level: i32, file: u64, file_size: u64, smallest: &InternalKey, largest: &InternalKey, )
| Add the specified file at the specified | number. | | REQUIRES: This version has not been saved | (see VersionSet::SaveTo) | | REQUIRES: “smallest” and “largest” are | smallest and largest keys in file
Sourcepub fn delete_file(&mut self, level: i32, file: u64)
pub fn delete_file(&mut self, level: i32, file: u64)
| Delete the specified “file” from the | specified “level”. |
pub fn clear(&mut self)
pub fn encode_to(&self, dst: *mut String)
pub fn decode_from(&mut self, src: &Slice) -> Status
pub fn debug_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VersionEdit
impl RefUnwindSafe for VersionEdit
impl Send for VersionEdit
impl Sync for VersionEdit
impl Unpin for VersionEdit
impl UnwindSafe for VersionEdit
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