Skip to main content

RangeView

Struct RangeView 

Source
pub struct RangeView<'a> { /* private fields */ }
Expand description

Unified view over a 2D range with efficient traversal utilities. Phase 4: Arrow-only backing.

Implementations§

Source§

impl<'a> RangeView<'a>

Source

pub fn with_cancel_token(self, token: Option<Arc<AtomicBool>>) -> Self

Source

pub fn sheet(&self) -> &ArrowSheet

Source

pub fn from_owned_rows( rows: Vec<Vec<LiteralValue>>, date_system: DateSystem, ) -> RangeView<'static>

Source

pub fn dims(&self) -> (usize, usize)

Source

pub fn expand_to(&self, rows: usize, cols: usize) -> RangeView<'a>

Source

pub fn sub_view( &self, rs: usize, cs: usize, rows: usize, cols: usize, ) -> RangeView<'a>

Source

pub fn is_empty(&self) -> bool

Source

pub fn start_row(&self) -> usize

Absolute 0-based start row of this view.

Source

pub fn end_row(&self) -> usize

Absolute 0-based end row of this view (inclusive).

Source

pub fn start_col(&self) -> usize

Absolute 0-based start column of this view.

Source

pub fn end_col(&self) -> usize

Absolute 0-based end column of this view (inclusive).

Source

pub fn sheet_name(&self) -> &str

Owning sheet name.

Source

pub fn kind_probe(&self) -> RangeKind

Source

pub fn as_1x1(&self) -> Option<LiteralValue>

Source

pub fn get_cell(&self, row: usize, col: usize) -> LiteralValue

Get a specific cell by row and column index (0-based). Returns Empty for out-of-bounds access.

Source

pub fn iter_row_chunks(&self) -> RowChunkIterator<'_>

Iterate overlapping chunks by row segment.

Source

pub fn for_each_cell( &self, f: &mut dyn FnMut(&LiteralValue) -> Result<(), ExcelError>, ) -> Result<(), ExcelError>

Row-major cell traversal.

Source

pub fn for_each_row( &self, f: &mut dyn FnMut(&[LiteralValue]) -> Result<(), ExcelError>, ) -> Result<(), ExcelError>

Visit each row as a borrowed slice (buffered).

Source

pub fn for_each_col( &self, f: &mut dyn FnMut(&[LiteralValue]) -> Result<(), ExcelError>, ) -> Result<(), ExcelError>

Visit each column as a contiguous slice (buffered).

Source

pub fn get_cell_numeric( &self, row: usize, col: usize, policy: CoercionPolicy, ) -> Option<f64>

Get a numeric value at a specific cell, with coercion. Returns None for empty cells or non-coercible values.

Source

pub fn numbers_chunked( &self, policy: CoercionPolicy, min_chunk: usize, f: &mut dyn FnMut(NumericChunk<'_>) -> Result<(), ExcelError>, ) -> Result<(), ExcelError>

Numeric chunk iteration with coercion policy.

Source

pub fn numbers_slices( &self, ) -> impl Iterator<Item = Result<(usize, usize, Vec<Arc<Float64Array>>), ExcelError>> + '_

Typed numeric slices per row-segment: (row_start, row_len, per-column Float64 arrays)

Source

pub fn booleans_slices( &self, ) -> impl Iterator<Item = Result<(usize, usize, Vec<Arc<BooleanArray>>), ExcelError>> + '_

Typed boolean slices per row-segment, overlay-aware via zip.

Source

pub fn text_slices( &self, ) -> impl Iterator<Item = Result<(usize, usize, Vec<ArrayRef>), ExcelError>> + '_

Text slices per row-segment (erased as ArrayRef for Utf8 today; future Dict/View support).

Source

pub fn lowered_text_slices( &self, ) -> impl Iterator<Item = Result<(usize, usize, Vec<Arc<StringArray>>), ExcelError>> + '_

Typed lowered text slices per row-segment, overlay-aware via zip.

Source

pub fn errors_slices( &self, ) -> impl Iterator<Item = Result<(usize, usize, Vec<Arc<UInt8Array>>), ExcelError>> + '_

Typed error-code slices per row-segment.

Source

pub fn type_tags_slices( &self, ) -> impl Iterator<Item = Result<(usize, usize, Vec<Arc<UInt8Array>>), ExcelError>> + '_

Typed type-tag slices per row-segment.

Source

pub fn lowered_text_columns(&self) -> Vec<ArrayRef>

Build per-column concatenated lowered text arrays for this view. Uses per-chunk lowered cache for base text and merges overlays via zip_select.

Source

pub fn slice_numbers( &self, rel_start: usize, len: usize, ) -> Vec<Option<Arc<Float64Array>>>

Slice typed float arrays for a specific row interval (relative to view).

Source

pub fn slice_lowered_text( &self, rel_start: usize, len: usize, ) -> Vec<Option<Arc<StringArray>>>

Slice typed lowered text arrays for a specific row interval (relative to view).

Trait Implementations§

Source§

impl<'a> Clone for RangeView<'a>

Source§

fn clone(&self) -> RangeView<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for RangeView<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for RangeView<'a>

§

impl<'a> !RefUnwindSafe for RangeView<'a>

§

impl<'a> Send for RangeView<'a>

§

impl<'a> Sync for RangeView<'a>

§

impl<'a> Unpin for RangeView<'a>

§

impl<'a> UnsafeUnpin for RangeView<'a>

§

impl<'a> !UnwindSafe for RangeView<'a>

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V