Skip to main content

IndexArm

Enum IndexArm 

Source
pub enum IndexArm {
    OneTableFourColumns,
    FourTables,
    PackedPayload,
}
Expand description

Which payload layout sits behind the read stack’s stree.

This one is a type, not a value, and that is deliberate: it is the hot path. GitStore is generic over it (GitStore<S = OneTableFourColumns>), so a caller that knows its arm at compile time — which includes every existing caller, through the default — pays no dispatch at all. This enum exists so a runtime selector can pick one; see crate::git_ops::open_from_env, which monomorphises all three and hands back a Box<dyn GitOps>.

MEASURED 2026-08-07 (PLAN §13): a packed 25-byte column beats four columns by 19–76% on the payload gather but loses column scans by 3.3x–14.4x, and no git operation does a full-row fetch. That is why OneTableFourColumns is the default — and why the losing arms stay selectable, because that conclusion is a measurement and measurements get re-run.

Variants§

§

OneTableFourColumns

OneTableFourColumns — the default. One Arrow IPC section, four columns.

§

FourTables

FourTables — four independent IPC sections joined on the ordinal.

§

PackedPayload

PackedPayload — one 25-byte fixed-size-binary column holding the whole row.

Implementations§

Source§

impl IndexArm

Source

pub const ALL: [IndexArm; 3]

Source

pub fn as_str(self) -> &'static str

The spelling an operator types.

Source

pub fn projection_name(self) -> &'static str

The name ObjectIndex::name reports for the projection this arm builds. Distinct from as_str on purpose: one is what an operator types, the other is what the built object calls itself, and a guard that compares them is comparing the selector against applied output.

Source

pub fn parse(s: &str) -> Result<Self>

Trait Implementations§

Source§

impl Clone for IndexArm

Source§

fn clone(&self) -> IndexArm

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 Copy for IndexArm

Source§

impl Debug for IndexArm

Source§

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

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

impl Default for IndexArm

Source§

fn default() -> IndexArm

Returns the “default value” for a type. Read more
Source§

impl Eq for IndexArm

Source§

impl PartialEq for IndexArm

Source§

fn eq(&self, other: &IndexArm) -> 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 IndexArm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.