pub struct ExcelArrayView<'call> { /* private fields */ }Expand description
A flat row-major xltypeMulti view.
ⓘ
use excel_api::ExcelArrayView;
fn require_send<T: Send>() {}
require_send::<ExcelArrayView<'static>>();ⓘ
use excel_api::ExcelArrayView;
fn require_sync<T: Sync>() {}
require_sync::<ExcelArrayView<'static>>();ⓘ
use excel_api::ExcelArrayView;
fn require_clone<T: Clone>() {}
require_clone::<ExcelArrayView<'static>>();Implementations§
Source§impl<'call> ExcelArrayView<'call>
impl<'call> ExcelArrayView<'call>
Sourcepub const fn dimensions(&self) -> (usize, usize)
pub const fn dimensions(&self) -> (usize, usize)
Returns (rows, columns) for this rectangular callback array.
Sourcepub const fn column_count(&self) -> usize
pub const fn column_count(&self) -> usize
Returns the number of columns.
Sourcepub fn get(
&self,
row: usize,
column: usize,
) -> Result<Option<ExcelValueRef<'call>>, DecodeError>
pub fn get( &self, row: usize, column: usize, ) -> Result<Option<ExcelValueRef<'call>>, DecodeError>
Decodes one element, or returns Ok(None) when the index is outside it.
The returned view borrows the same Excel callback storage as this array.
Sourcepub fn row(&self, row: usize) -> Option<ExcelArrayElements<'_, 'call>>
pub fn row(&self, row: usize) -> Option<ExcelArrayElements<'_, 'call>>
Iterates decoded elements in row, or returns None for an invalid row.
Sourcepub fn column(&self, column: usize) -> Option<ExcelArrayElements<'_, 'call>>
pub fn column(&self, column: usize) -> Option<ExcelArrayElements<'_, 'call>>
Iterates decoded elements in column, or returns None for an invalid column.
Sourcepub fn rows(&self) -> ExcelArrayRows<'_, 'call> ⓘ
pub fn rows(&self) -> ExcelArrayRows<'_, 'call> ⓘ
Iterates the rows in row-major order.
Sourcepub fn columns(&self) -> ExcelArrayColumns<'_, 'call> ⓘ
pub fn columns(&self) -> ExcelArrayColumns<'_, 'call> ⓘ
Iterates the columns in column-major order.
Trait Implementations§
Auto Trait Implementations§
impl<'call> !Send for ExcelArrayView<'call>
impl<'call> !Sync for ExcelArrayView<'call>
impl<'call> Freeze for ExcelArrayView<'call>
impl<'call> RefUnwindSafe for ExcelArrayView<'call>
impl<'call> Unpin for ExcelArrayView<'call>
impl<'call> UnsafeUnpin for ExcelArrayView<'call>
impl<'call> UnwindSafe for ExcelArrayView<'call>
Blanket Implementations§
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