Struct Cells

Source
pub struct Cells { /* private fields */ }

Implementations§

Source§

impl Cells

Source

pub fn iter_collection(&self) -> impl Iterator<Item = &Cell>

Iterates all Cells in arbitrary order (not sorted).

Source

pub fn get_collection(&self) -> Vec<&Cell>

Source

pub fn is_row_empty(&self, row_num: u32) -> bool

Source

pub fn is_col_empty(&self, col_num: u32) -> bool

Source

pub fn iter_coordinates_sorted_by_row_column( &self, ) -> impl Iterator<Item = (u32, u32)> + '_

Iterates all cell coordinates, sorted by row then by column. Coordinate returned is (column, row).

Source

pub fn iter_cells_sorted_by_row_column(&self) -> impl Iterator<Item = &Cell>

Iterates all Cells, sorted by row then by column. Coordinate returned is (column, row).

Source

pub fn iter_coordinates_sorted_by_column_row( &self, ) -> impl Iterator<Item = (u32, u32)> + '_

Iterates all cell coordinates, sorted by column then by row. Coordinate returned is (column, row).

Source

pub fn iter_cells_sorted_by_column_row(&self) -> impl Iterator<Item = &Cell>

Iterates all Cells, sorted by column then by row. Coordinate returned is (column, row).

Source

pub fn get_collection_sorted(&self) -> Vec<&Cell>

Source

pub fn get_collection_to_hashmap(&self) -> &HashMap<(u32, u32), Box<Cell>>

Source

pub fn iter_rows_with_cells_by_column( &self, column_num: u32, ) -> impl Iterator<Item = u32> + '_

Iterates all rows cells in a given column, sorted by the row index.

Source

pub fn iter_cells_by_column( &self, column_num: u32, ) -> impl Iterator<Item = &Cell>

Iterates all Cells in a given column, sorted by the row index.

Source

pub fn get_collection_by_column(&self, column_num: &u32) -> Vec<&Cell>

Source

pub fn iter_columns_with_cells_by_row( &self, row_num: u32, ) -> impl Iterator<Item = u32> + '_

Iterates all column cells in a given column, sorted by the column index.

Source

pub fn iter_cells_by_row(&self, row_num: u32) -> impl Iterator<Item = &Cell>

Iterates all Cells in a given column, sorted by the column index.

Source

pub fn get_collection_by_row(&self, row_num: &u32) -> Vec<&Cell>

Source

pub fn iter_coordinates_by_range_sorted_by_row( &self, row_start: u32, row_end: u32, col_start: u32, col_end: u32, ) -> impl Iterator<Item = (u32, u32)> + '_

Iterates all coordinates in a range, sorted by row then by column. Coordinate returned is (column, row).

Source

pub fn iter_cells_by_range_sorted_by_row( &self, row_start: u32, row_end: u32, col_start: u32, col_end: u32, ) -> impl Iterator<Item = &Cell>

Iterates all Cells in a range, sorted by row then by column.

Source

pub fn iter_coordinates_by_range_sorted_by_column( &self, col_start: u32, col_end: u32, row_start: u32, row_end: u32, ) -> impl Iterator<Item = (u32, u32)> + '_

Iterates all coordinates in a range, sorted by column then by row. Coordinate returned is (column, row).

Source

pub fn iter_cells_by_range_sorted_by_column( &self, col_start: u32, col_end: u32, row_start: u32, row_end: u32, ) -> impl Iterator<Item = &Cell>

Iterates all Cells in a range, sorted by column then by row. Coordinate returned is (column, row).

Source

pub fn get_collection_by_column_to_hashmap( &self, column_num: &u32, ) -> HashMap<u32, &Cell>

Source

pub fn get_collection_by_row_to_hashmap( &self, row_num: &u32, ) -> HashMap<u32, &Cell>

Source

pub fn get_highest_column_and_row(&self) -> (u32, u32)

Has Hyperlink

Source

pub fn get<T>(&self, coordinate: T) -> Option<&Cell>

Source

pub fn get_cell_value<T>(&self, coordinate: T) -> &CellValue

Source

pub fn get_style<T>(&self, coordinate: T) -> &Style

Source

pub fn iter_all_coordinates_by_range_sorted_by_row( &self, range: &str, ) -> impl Iterator<Item = Option<(u32, u32)>> + '_

Source

pub fn iter_all_cells_by_range_sorted_by_row( &self, range: &str, ) -> impl Iterator<Item = Option<&Cell>> + '_

Source

pub fn iter_all_cell_values_by_range_sorted_by_row( &self, range: &str, ) -> impl Iterator<Item = &CellValue> + '_

Source

pub fn iter_all_coordinates_by_range_sorted_by_column( &self, range: &str, ) -> impl Iterator<Item = Option<(u32, u32)>> + '_

Source

pub fn iter_all_cells_by_range_sorted_by_column( &self, range: &str, ) -> impl Iterator<Item = Option<&Cell>> + '_

Source

pub fn iter_all_cell_values_by_range_sorted_by_column( &self, range: &str, ) -> impl Iterator<Item = &CellValue> + '_

Source

pub fn get_cell_by_range(&self, range: &str) -> Vec<Option<&Cell>>

Source

pub fn get_cell_value_by_range(&self, range: &str) -> Vec<&CellValue>

Source

pub fn get_formatted_value_by_column_and_row( &self, col_num: &u32, row_num: &u32, ) -> String

Trait Implementations§

Source§

impl Clone for Cells

Source§

fn clone(&self) -> Cells

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 Debug for Cells

Source§

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

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

impl Default for Cells

Source§

fn default() -> Cells

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

Auto Trait Implementations§

§

impl Freeze for Cells

§

impl RefUnwindSafe for Cells

§

impl Send for Cells

§

impl Sync for Cells

§

impl Unpin for Cells

§

impl UnwindSafe for Cells

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.