Skip to main content

CarvedFragment

Struct CarvedFragment 

Source
pub struct CarvedFragment {
    pub page: u32,
    pub offset: usize,
    pub surviving: Vec<(usize, Value)>,
    pub missing: usize,
    pub confidence: f32,
    pub source: RecoverySource,
    pub wal: Option<WalProvenance>,
}
Expand description

A Tier-2 partial recovery: a freed cell whose full row could not be reconstructed but at least one distinctive cell (TEXT ≥ 4 bytes of valid UTF-8, or REAL) survived at a structural anchor.

Deliberately NOT a CarvedRecord: it has no rowid (clobbered) and an incomplete column set, and it does not share the full-row 0-false-positive guarantee — it is a lead-generation surface with an expected non-zero false-positive rate. The type system keeps it out of the full-row output so a fragment can never be silently rendered as a recovered row (secure by design). Returned only by carve_with_fragments in the opt-in CarveTiers::fragments bucket. A fragment is “consistent with a partial deleted row” — the examiner draws the conclusion.

Fields§

§page: u32

1-based page the fragment was salvaged from.

§offset: usize

Byte offset of the failed cell’s anchor within that page.

§surviving: Vec<(usize, Value)>

(column_index, value) for each column that decoded cleanly, ascending by index — meaningful against the table’s column order.

§missing: usize

Number of the row’s columns that did NOT decode.

§confidence: f32

Always the flat Tier-2 fragment confidence (0.2) for now — strictly below every full-row class.

§source: RecoverySource

Which class of free space the fragment was salvaged from (RecoverySource::FreeblockReconstructed for chain-pass fragments, RecoverySource::InPageFreeBlock for gap-pass fragments).

§wal: Option<WalProvenance>

WAL log-sequence provenance. None in v1 (no WAL fragment pass yet).

Trait Implementations§

Source§

impl Clone for CarvedFragment

Source§

fn clone(&self) -> CarvedFragment

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CarvedFragment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for CarvedFragment

Source§

fn eq(&self, other: &CarvedFragment) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CarvedFragment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.