Worksheet

Struct Worksheet 

Source
pub struct Worksheet { /* private fields */ }
Expand description

A Worksheet Object.

Implementations§

Source§

impl Worksheet

Source

pub fn get_value<T>(&self, coordinate: T) -> String

Get value.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • String - Value of the specified cell.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let value = worksheet.get_value("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let value = worksheet.get_value((1, 1));
Source

pub fn get_value_number<T>(&self, coordinate: T) -> Option<f64>

Get value number.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1)
§Return value
  • Option<f64> - Value of the specified cell.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let value = worksheet.get_value_number("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let value = worksheet.get_value_number((1, 1));
Source

pub fn get_formatted_value<T>(&self, coordinate: T) -> String

Get formatted value.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • String - Formatted value of the specified cell.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let value = worksheet.get_formatted_value("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let value = worksheet.get_formatted_value((1, 1));
Source

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

Get Cell List.

Source

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

Source

pub fn get_cell_collection_mut(&mut self) -> Vec<&mut Cell>

Get Cell List in mutable.

Source

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

Source

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

Source

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

Get cell.

§Note

Cells with unset Value and Style will return None.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • Option - Cell in the Some.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let cell = worksheet.get_cell("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell = worksheet.get_cell((1, 1));
Source

pub fn get_cell_mut<T>(&mut self, coordinate: T) -> &mut Cell

Get cell with mutable.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • &mut Cell - Cell with mutable.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let cell = worksheet.get_cell_mut("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell = worksheet.get_cell_mut((1, 1));
Source

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

Source

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

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 set_cell(&mut self, cell: Cell) -> &mut Self

Set Cell

§Arguments
  • cell - Cell
Source

pub fn remove_cell<T>(&mut self, coordinate: T) -> bool

Remove Cell

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Examples
worksheet.remove_cell("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
worksheet.remove_cell((1, 1));
Source

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

Get cell value.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • &CellValue - CellValue.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let cell_value = worksheet.get_cell_value("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell_value = worksheet.get_cell_value((1, 1));
Source

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

Get cell value with mutable.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • &mut CellValue - CellValue with mutable.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let cell_value = worksheet.get_cell_value_mut("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let cell_value = worksheet.get_cell_value_mut((1, 1));
Source

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

Gets the cell value by specifying an range.

§Arguments
  • range - range. ex) “A1:C5”
§Return value

*Vec<&CellValue> - CellValue List.

§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let mut cell_value_List = worksheet.get_cell_value_by_range("A1:C5");
Source

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

Get style.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • &Style - Style.
§Examples
let book = umya_spreadsheet::new_file();
let worksheet = book.get_sheet(&0).unwrap();
let style = worksheet.get_style("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let style = worksheet.get_style((1, 1));
Source

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

Get style with mutable.

§Arguments
  • coordinate - Specify the coordinates. ex) "A1" or (1, 1) or (&1, &1)
§Return value
  • &mut Style - Style with mutable.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let style = worksheet.get_style_mut("A1");
// or pass in a tuple `(col, row)`, both col and row starting at `1`
let style = worksheet.get_style_mut((1, 1));
Source

pub fn set_style<T>(&mut self, coordinate: T, style: Style) -> &mut Self

Source

pub fn set_style_by_range(&mut self, range: &str, style: Style) -> &mut Self

Set style by range.

§Arguments
  • range - Specify the range. ex) “A1:B2”
  • style - Style
§Return value
  • &mut Self - Self.
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let mut style = umya_spreadsheet::Style::default();
style.get_borders_mut().get_bottom_mut().set_border_style(umya_spreadsheet::Border::BORDER_MEDIUM);
worksheet.set_style_by_range("A1:A3", style);
Source

pub fn map_merged_cell<T>(&self, coordinate: T) -> (u32, u32)

Get the upper-left corner cell of a cell inside a merged cell range (if any).

Source

pub fn get_comments(&self) -> &[Comment]

Get Comments

Source

pub fn get_comments_mut(&mut self) -> &mut ThinVec<Comment>

Get Comments in mutable.

Source

pub fn get_comments_to_hashmap(&self) -> HashMap<String, &Comment>

Get Comments convert to hashmap.

Source

pub fn set_comments(&mut self, value: impl Into<ThinVec<Comment>>)

Set Comments.

§Arguments
  • value - Comment List (Vec)
Source

pub fn add_comments(&mut self, value: Comment)

Add Comments.

§Arguments
  • value - Comment
Source

pub fn has_comments(&self) -> bool

Has Comments.

Source

pub fn get_threaded_comments(&self) -> &[ThreadedComment]

Get ThreadedComments

Source

pub fn get_threaded_comments_mut(&mut self) -> &mut ThinVec<ThreadedComment>

Get ThreadedComments in mutable.

Source

pub fn get_threaded_comments_to_hashmap( &self, ) -> HashMap<String, &ThreadedComment>

Get ThreadedComments convert to hashmap.

Source

pub fn set_threaded_comments( &mut self, value: impl Into<ThinVec<ThreadedComment>>, )

Set ThreadedComment.

§Arguments
  • value - ThreadedComment List (Vec)
Source

pub fn add_threaded_comments(&mut self, value: ThreadedComment)

Add ThreadedComment.

§Arguments
  • value - ThreadedComment
Source

pub fn has_threaded_comments(&self) -> bool

Has ThreadedComments.

Source

pub fn get_conditional_formatting_collection(&self) -> &[ConditionalFormatting]

Get ConditionalFormatting list.

Source

pub fn set_conditional_formatting_collection( &mut self, value: impl Into<ThinVec<ConditionalFormatting>>, )

Set ConditionalFormatting.

§Arguments
  • value - ConditionalSet List (Vec)
Source

pub fn add_conditional_formatting_collection( &mut self, value: ConditionalFormatting, )

Add ConditionalFormatting.

§Arguments
  • value - ConditionalFormatting
Source

pub fn get_merge_cells(&self) -> &[Range]

Source

pub fn get_merge_cells_mut(&mut self) -> &mut ThinVec<Range>

Source

pub fn add_merge_cells<S: Into<String>>(&mut self, range: S) -> &mut Self

§Arguments
  • range - Range. ex) “A1:C5”
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.add_merge_cells("A1:C5");
Source

pub fn get_auto_filter(&self) -> Option<&AutoFilter>

Source

pub fn get_auto_filter_mut(&mut self) -> Option<&mut AutoFilter>

Source

pub fn set_auto_filter<S: Into<String>>(&mut self, range: S)

§Arguments
  • range - Range. ex) “A2:K2”
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.set_auto_filter("A2:K2");
Source

pub fn remove_auto_filter(&mut self)

Source

pub fn get_column_dimensions(&self) -> &[Column]

Get Column Dimension List.

Source

pub fn get_column_dimensions_mut(&mut self) -> &mut ThinVec<Column>

Get Column Dimension List in mutable.

Source

pub fn calculation_auto_width(&mut self) -> &mut Self

Calculation Auto Width.

Source

pub fn get_column_dimension(&self, column: &str) -> Option<&Column>

Get Column Dimension.

§Arguments
  • column - Column Char. ex) “A”
Source

pub fn get_column_dimension_mut(&mut self, column: &str) -> &mut Column

Get Column Dimension in mutable.

§Arguments
  • column - Column Char. ex) “A”
Source

pub fn get_column_dimension_by_number(&self, col: &u32) -> Option<&Column>

Get Column Dimension.

§Arguments
  • col - Column Number.
Source

pub fn get_column_dimension_by_number_mut(&mut self, col: &u32) -> &mut Column

Get Column Dimension in mutable.

§Arguments
  • col - Column Number.
Source

pub fn has_sheet_data(&self) -> bool

Source

pub fn get_row_dimensions(&self) -> Vec<&Row>

Get Row Dimension List.

Source

pub fn get_row_dimensions_mut(&mut self) -> Vec<&mut Row>

Get Row Dimension List in mutable.

Source

pub fn get_row_dimensions_to_hashmap(&self) -> &HashMap<u32, Box<Row>>

Get Row Dimension convert Hashmap.

Source

pub fn get_row_dimensions_to_hashmap_mut( &mut self, ) -> &mut HashMap<u32, Box<Row>>

Source

pub fn get_row_dimension(&self, row: &u32) -> Option<&Row>

Get Row Dimension.

Source

pub fn get_row_dimension_mut(&mut self, row: &u32) -> &mut Row

Get Row Dimension in mutable.

Source

pub fn get_worksheet_drawing(&self) -> &WorksheetDrawing

Get WorksheetDrawing.

Source

pub fn get_worksheet_drawing_mut(&mut self) -> &mut WorksheetDrawing

Get WorksheetDrawing in mutable.

Source

pub fn set_worksheet_drawing(&mut self, value: WorksheetDrawing)

Set WorksheetDrawing.

§Arguments
  • value - WorksheetDrawing
Source

pub fn has_drawing_object(&self) -> bool

Has WorksheetDrawing.

Source

pub fn insert_new_row(&mut self, row_index: &u32, num_rows: &u32)

Insert new rows.

§Arguments
  • row_index - Specify point of insert. ex) 1
  • num_rows - Specify number to insert. ex) 2
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.insert_new_row(&2, &3);
Source

pub fn insert_new_row_from_other_sheet( &mut self, sheet_name: &str, row_index: &u32, num_rows: &u32, )

Adjust for references to other sheets.

Source

pub fn insert_new_column(&mut self, column: &str, num_columns: &u32)

Insert new columns.

§Arguments
  • column - Specify point of insert. ex) “B”
  • num_columns - Specify number to insert. ex) 3
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.insert_new_column("B", &3);
Source

pub fn insert_new_column_from_other_sheet( &mut self, sheet_name: &str, column: &str, num_columns: &u32, )

Adjust for references to other sheets.

Source

pub fn insert_new_column_by_index( &mut self, column_index: &u32, num_columns: &u32, )

Insert new columns.

§Arguments
  • column_index - Specify point of insert. ex) 2
  • num_columns - Specify number to insert. ex) 3
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.insert_new_column_by_index(&2, &3);
Source

pub fn insert_new_column_by_index_from_other_sheet( &mut self, sheet_name: &str, column_index: &u32, num_columns: &u32, )

Adjust for references to other sheets.

Source

pub fn remove_row(&mut self, row_index: &u32, num_rows: &u32)

Remove rows.

§Arguments
  • row_index - Specify point of remove. ex) 1
  • num_rows - Specify number to remove. ex) 2
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.remove_row(&2, &3);
Source

pub fn remove_row_from_other_sheet( &mut self, sheet_name: &str, row_index: &u32, num_rows: &u32, )

Adjust for references to other sheets.

Source

pub fn remove_column(&mut self, column: &str, num_columns: &u32)

Remove columns.

§Arguments
  • sheet_name - Specify the sheet name. ex) “Sheet1”
  • column - Specify point of remove. ex) “B”
  • num_columns - Specify number to remove. ex) 3
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.remove_column("B", &3);
Source

pub fn remove_column_from_other_sheet( &mut self, sheet_name: &str, column: &str, num_columns: &u32, )

Adjust for references to other sheets.

Source

pub fn remove_column_by_index(&mut self, column_index: &u32, num_columns: &u32)

Remove columns.

§Arguments
  • column_index - Specify point of remove. ex) 2
  • num_columns - Specify number to remove. ex) 3
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
worksheet.remove_column_by_index(&2, &3);
Source

pub fn remove_column_by_index_from_other_sheet( &mut self, sheet_name: &str, column_index: &u32, num_columns: &u32, )

Adjust for references to other sheets.

Source

pub fn get_code_name(&self) -> Option<&str>

Get Code Name.

Source

pub fn set_code_name<S: Into<String>>(&mut self, value: S)

Set Code Name.

§Arguments
  • value - Code Name

Get Header Footer.

Get Header Footer in mutable.

Set Header Footer.

§Arguments
  • value - Header Footer
Source

pub fn get_active_cell(&self) -> &str

Get Active Cell.

Source

pub fn set_active_cell<S: Into<String>>(&mut self, cell: S)

Set Active Cell.

§Arguments
  • cell - Cell ex) “A1”
Source

pub fn get_sheet_id(&self) -> &str

Get Sheet Id.

Source

pub fn has_code_name(&self) -> bool

Has Code Name.

Source

pub fn get_tab_color(&self) -> Option<&Color>

Get Tab Color.

Source

pub fn get_tab_color_mut(&mut self) -> &mut Color

Get Tab Color in mutable.

Source

pub fn set_tab_color(&mut self, value: Color) -> &mut Self

Set Tab Color.

§Arguments
  • value - Color
Source

pub fn remove_tab_color(&mut self) -> &mut Self

Remove Tab Color.

Source

pub fn calculate_worksheet_dimension(&self) -> String

Calculate Worksheet Dimension.

Source

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

§Return value

*(u32, u32) - (column, row)

Source

pub fn get_highest_column(&self) -> u32

Source

pub fn get_highest_row(&self) -> u32

Source

pub fn get_name(&self) -> &str

Get SheetName.

Source

pub fn set_name<S: Into<String>>(&mut self, sheet_name: S) -> &mut Self

Set SheetName.

§Arguments
  • sheet_name - Sheet Name. [Caution] no duplicate other worksheet.
Source

pub fn get_state(&self) -> &SheetStateValues

Source

pub fn set_state(&mut self, value: SheetStateValues) -> &mut Self

Source

pub fn get_sheet_state(&self) -> &str

Source

pub fn set_sheet_state(&mut self, value: String) -> &mut Self

Set Sheet State.

§Arguments
  • value - Sheet State.
Source

pub fn get_page_setup(&self) -> &PageSetup

Source

pub fn get_page_setup_mut(&mut self) -> &mut PageSetup

Source

pub fn set_page_setup(&mut self, value: PageSetup) -> &mut Self

Set Page Setup.

§Arguments
  • value - PageSetup.
Source

pub fn get_page_margins(&self) -> &PageMargins

Source

pub fn get_page_margins_mut(&mut self) -> &mut PageMargins

Source

pub fn set_page_margins(&mut self, value: PageMargins) -> &mut Self

Set Page Margins.

§Arguments
  • value - PageMargins.
Source

pub fn get_sheets_views(&self) -> &SheetViews

Source

pub fn get_sheet_views_mut(&mut self) -> &mut SheetViews

Source

pub fn set_sheets_views(&mut self, value: SheetViews) -> &mut Self

Set SheetViews.

§Arguments
  • value - SheetViews.
Source

pub fn get_ole_objects(&self) -> &OleObjects

Source

pub fn get_ole_objects_mut(&mut self) -> &mut OleObjects

Source

pub fn set_ole_objects(&mut self, value: OleObjects) -> &mut Self

Set Ole Objects.

§Arguments
  • value - OleObjects.
Source

pub fn get_defined_names(&self) -> &[DefinedName]

Get Defined Name (Vec).

Source

pub fn get_defined_names_mut(&mut self) -> &mut ThinVec<DefinedName>

Get Defined Name (Vec) in mutable.

Source

pub fn set_defined_names(&mut self, value: impl Into<ThinVec<DefinedName>>)

Set Defined Name (Vec).

§Arguments
  • value - Vec.
Source

pub fn add_defined_names(&mut self, value: DefinedName)

Add Defined Name.

§Arguments
  • value - DefinedName.
Source

pub fn add_defined_name<S: Into<String>>( &mut self, name: S, address: S, ) -> Result<(), &str>

Add Defined Name.

§Arguments
  • name - Name. ex) “DefinedName01”
  • address - Address. ex) “A1:A2”
Source

pub fn get_print_options(&self) -> &PrintOptions

Get Print Options.

Source

pub fn get_print_options_mut(&mut self) -> &mut PrintOptions

Get Print Options in mutable.

Source

pub fn set_print_options(&mut self, value: PrintOptions) -> &mut Self

Set Print Options.

§Arguments
  • value - PrintOptions.
Source

pub fn get_column_breaks(&self) -> &ColumnBreaks

Get Column Breaks.

Source

pub fn get_column_breaks_mut(&mut self) -> &mut ColumnBreaks

Get Column Breaks in mutable.

Source

pub fn set_column_breaks(&mut self, value: ColumnBreaks) -> &mut Self

Set Column Breaks.

§Arguments
  • value - ColumnBreaks.
Source

pub fn get_row_breaks(&self) -> &RowBreaks

Get Row Breaks.

Source

pub fn get_row_breaks_mut(&mut self) -> &mut RowBreaks

Get Row Breaks in mutable.

Source

pub fn set_row_breaks(&mut self, value: RowBreaks) -> &mut Self

Set Row Breaks.

§Arguments
  • value - RowBreaks.
Source

pub fn has_table(&self) -> bool

Source

pub fn add_table(&mut self, table: Table)

Source

pub fn get_tables(&self) -> &[Table]

Source

pub fn get_tables_mut(&mut self) -> &mut ThinVec<Table>

Source

pub fn get_data_validations(&self) -> Option<&DataValidations>

Source

pub fn get_data_validations_mut(&mut self) -> Option<&mut DataValidations>

Source

pub fn set_data_validations(&mut self, value: DataValidations) -> &mut Self

Source

pub fn remove_data_validations(&mut self) -> &mut Self

Source

pub fn get_data_validations_2010(&self) -> Option<&DataValidations2010>

Source

pub fn get_data_validations_2010_mut( &mut self, ) -> Option<&mut DataValidations2010>

Source

pub fn set_data_validations_2010( &mut self, value: DataValidations2010, ) -> &mut Self

Source

pub fn remove_data_validations_2010(&mut self) -> &mut Self

Source

pub fn get_sheet_format_properties(&self) -> &SheetFormatProperties

Source

pub fn get_sheet_format_properties_mut(&mut self) -> &mut SheetFormatProperties

Source

pub fn set_sheet_format_properties( &mut self, value: SheetFormatProperties, ) -> &mut Self

Source

pub fn get_image_collection(&self) -> &[Image]

Outputs all images contained in the worksheet.

§Return value
  • &Vec<Image> - Image Object List.
Source

pub fn get_image_collection_mut(&mut self) -> &mut ThinVec<Image>

Outputs all images contained in the worksheet.

§Return value
  • &mut Vec<Image> - Image Object List.
Source

pub fn add_image(&mut self, value: Image) -> &mut Self

Source

pub fn get_image<T>(&self, coordinate: T) -> Option<&Image>

Source

pub fn get_image_mut<T>(&mut self, coordinate: T) -> Option<&mut Image>

Source

pub fn get_image_by_column_and_row_mut( &mut self, col: &u32, row: &u32, ) -> Option<&mut Image>

Source

pub fn get_images<T>(&self, coordinate: T) -> Vec<&Image>

Source

pub fn get_images_mut<T>(&mut self, coordinate: T) -> Vec<&mut Image>

Source

pub fn get_chart_collection(&self) -> &[Chart]

Outputs all Charts contained in the worksheet.

§Return value
  • &Vec<Chart> - Chart Object List.
Source

pub fn get_chart_collection_mut(&mut self) -> &mut ThinVec<Chart>

Outputs all Charts contained in the worksheet.

§Return value
  • &mut Vec<Chart> - Chart Object List.
Source

pub fn add_chart(&mut self, value: Chart) -> &mut Self

Source

pub fn get_chart<T>(&self, coordinate: T) -> Option<&Chart>

Source

pub fn get_chart_mut<T>(&mut self, coordinate: T) -> Option<&mut Chart>

Source

pub fn get_charts<T>(&self, coordinate: T) -> Vec<&Chart>

Source

pub fn get_charts_mut<T>(&mut self, coordinate: T) -> Vec<&mut Chart>

Source

pub fn get_sheet_protection(&self) -> Option<&SheetProtection>

Source

pub fn get_sheet_protection_mut(&mut self) -> &mut SheetProtection

Source

pub fn set_sheet_protection(&mut self, value: SheetProtection) -> &mut Self

Source

pub fn remove_sheet_protection(&mut self) -> &mut Self

Source

pub fn move_range(&mut self, range: &str, row: &i32, column: &i32) -> &mut Self

Moving a section of the sheet

§Arguments

‘range’ - Specify like “A1:G8” ‘row’ - The number of rows to move by (negative numbers mean move ‘left’) ‘column’ - the number of columns to move by (negative numbers mean move ‘up’)

Source

pub fn copy_range(&mut self, range: &str, row: &i32, column: &i32) -> &mut Self

Copying a section of the sheet

§Arguments

‘range’ - Specify like “A1:G8” ‘row’ - The number of rows to move by (negative numbers mean move ‘left’) ‘column’ - the number of columns to move by (negative numbers mean move ‘up’)

Source

pub fn cleanup(&mut self)

Remove invisible garbage data. Doing so may reduce file size. Processing may take some time.

Source

pub fn copy_cell_styling<T>(&mut self, source: T, target: T)

Source

pub fn copy_row_styling( &mut self, source_row_no: &u32, target_row_no: &u32, start_col: Option<&u32>, end_col: Option<&u32>, )

Copy the style of a given Row to the target.

§Arguments
  • source_row_no - Source Row Number.
  • target_row_no - Target Row Number.
  • start_col - Start Column Number. If None, minimum value
  • end_col - End Column Number. If None, maximum value
Source

pub fn copy_col_styling( &mut self, source_col_no: &u32, target_col_no: &u32, start_row: Option<&u32>, end_row: Option<&u32>, )

Copy the style of a given Column to the target.

§Arguments
  • source_col_no - Source Column Number.
  • target_col_no - Target Column Number.
  • start_row - Start Row Number. If None, minimum value
  • end_row - End Row Number. If None, maximum value

Trait Implementations§

Source§

impl Clone for Worksheet

Source§

fn clone(&self) -> Worksheet

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 Worksheet

Source§

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

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

impl Default for Worksheet

Source§

fn default() -> Worksheet

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

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.