pub struct VersionSetBuilder { /* private fields */ }
Expand description
| A helper class so we can efficiently apply | a whole sequence of edits to a particular state | without creating intermediate Versions that | contain full copies of the intermediate state.
Implementations§
source§impl VersionSetBuilder
impl VersionSetBuilder
sourcepub fn new(vset: *mut VersionSet, base: *mut Version) -> Self
pub fn new(vset: *mut VersionSet, base: *mut Version) -> Self
| Initialize a builder with the files | from *base and other info from *vset |
sourcepub fn apply(&mut self, edit: *mut VersionEdit)
pub fn apply(&mut self, edit: *mut VersionEdit)
| Apply all of the edits in *edit to the | current state. |
pub fn maybe_add_file( &mut self, v: *mut Version, level: i32, f: *mut FileMetaData )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VersionSetBuilder
impl !Send for VersionSetBuilder
impl !Sync for VersionSetBuilder
impl Unpin for VersionSetBuilder
impl !UnwindSafe for VersionSetBuilder
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more