pub enum VersionPlan {
Delta {
base_path: String,
chain_len: usize,
delta_bytes: usize,
},
Chunked(ChunkedReason),
}Expand description
What the writer decided to do with one version of a path.
The decision is made on real bytes — the delta is encoded and its compressed size compared against the compressed chunked form — never on a guess about how similar two versions look. A reader is therefore never surprised: whichever branch wins is what the index records.
Variants§
Delta
Store as a delta against base_path, chain_len links deep.
Chunked(ChunkedReason)
Store the whole version as chunks. Carries why, so the choice is auditable rather than silent.
Trait Implementations§
Source§impl Debug for VersionPlan
impl Debug for VersionPlan
impl Eq for VersionPlan
Source§impl PartialEq for VersionPlan
impl PartialEq for VersionPlan
impl StructuralPartialEq for VersionPlan
Auto Trait Implementations§
impl Freeze for VersionPlan
impl RefUnwindSafe for VersionPlan
impl Send for VersionPlan
impl Sync for VersionPlan
impl Unpin for VersionPlan
impl UnsafeUnpin for VersionPlan
impl UnwindSafe for VersionPlan
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.