Struct edit_xlsx::WorkSheet

source ·
pub struct WorkSheet { /* private fields */ }

Implementations§

source§

impl WorkSheet

source

pub fn autofilter<L: LocationRange>(&mut self, loc_range: L)

source

pub fn filter_column<L: Location>(&mut self, col: L, filters: &Filters<'_>)

source§

impl WorkSheet

source

pub fn max_column(&self) -> u32

source

pub fn max_row(&self) -> u32

source

pub fn get_name(&self) -> &str

source

pub fn set_name(&mut self, name: &str) -> WorkSheetResult<()>

source

pub fn activate(&mut self)

source

pub fn select(&mut self)

source

pub fn deselect(&mut self)

source

pub fn right_to_left(&mut self)

source

pub fn set_top_left_cell<L: Location>(&mut self, loc: L)

source

pub fn set_zoom(&mut self, zoom_scale: u16)

source

pub fn set_selection<L: LocationRange>( &mut self, loc_range: L ) -> WorkSheetResult<()>

source

pub fn freeze_panes<L: Location>(&mut self, loc: L) -> WorkSheetResult<()>

source

pub fn split_panes(&mut self, width: f64, height: f64) -> WorkSheetResult<()>

source

pub fn set_default_row(&mut self, height: f64)

source

pub fn get_default_row(&self) -> f64

source

pub fn set_default_column(&mut self, height: f64)

source

pub fn get_default_column(&self) -> f64

source

pub fn hide_unused_rows(&mut self, hide: bool)

source

pub fn outline_settings( &mut self, visible: bool, symbols_below: bool, symbols_right: bool, auto_style: bool )

source

pub fn ignore_errors<L: Location>(&mut self, error_map: HashMap<&str, L>)

source

pub fn hide(&mut self)

source

pub fn set_tab_color(&mut self, tab_color: &FormatColor)

source

pub fn set_background<P: AsRef<Path>>( &mut self, filename: P ) -> WorkSheetResult<()>

source

pub fn insert_image<L: LocationRange, P: AsRef<Path>>( &mut self, loc_range: L, filename: &P ) -> WorkSheetResult<()>

source

pub fn id(&self) -> u32

Trait Implementations§

source§

impl Debug for WorkSheet

source§

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

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

impl Read for WorkSheet

source§

fn read_cell<L: Location>(&self, loc: L) -> WorkSheetResult<Cell<String>>

source§

impl WorkSheetCol for WorkSheet

source§

fn get_columns<R: LocationRange>( &self, col_range: R ) -> WorkSheetResult<HashMap<String, Column>>

get methods
source§

fn get_columns_with_format<R: LocationRange>( &self, col_range: R ) -> WorkSheetResult<HashMap<String, (Column, Option<Format>)>>

source§

fn get_columns_width<R: LocationRange>( &self, col_range: R ) -> WorkSheetResult<HashMap<String, Option<f64>>>

source§

fn set_columns<R: LocationRange>( &mut self, col_range: R, column: &Column ) -> WorkSheetResult<()>

set methods Read more
source§

fn set_columns_with_format<R: LocationRange>( &mut self, col_range: R, column: &Column, format: &Format ) -> WorkSheetResult<()>

source§

fn set_columns_width<R: LocationRange>( &mut self, col_range: R, width: f64 ) -> WorkSheetResult<()>

set columns width and formats
source§

fn set_columns_width_pixels<R: LocationRange>( &mut self, col_range: R, width: f64 ) -> WorkSheetResult<()>

source§

fn set_columns_width_with_format<R: LocationRange>( &mut self, col_range: R, width: f64, format: &Format ) -> WorkSheetResult<()>

source§

fn set_columns_width_pixels_with_format<R: LocationRange>( &mut self, col_range: R, width: f64, format: &Format ) -> WorkSheetResult<()>

source§

fn hide_columns<R: LocationRange>( &mut self, col_range: R ) -> WorkSheetResult<()>

hide columns
source§

fn set_columns_level<R: LocationRange>( &mut self, col_range: R, level: u32 ) -> WorkSheetResult<()>

collapse columns
source§

fn collapse_columns<R: LocationRange>( &mut self, col_range: R ) -> WorkSheetResult<()>

source§

impl WorkSheetRow for WorkSheet

source§

fn get_row(&self, row: u32) -> WorkSheetResult<Row>

source§

fn get_row_with_format( &self, row: u32 ) -> WorkSheetResult<(Row, Option<Format>)>

source§

fn get_row_height(&self, row: u32) -> WorkSheetResult<Option<f64>>

source§

fn set_row(&mut self, row_number: u32, row: &Row) -> WorkSheetResult<()>

set methods Read more
source§

fn set_row_with_format( &mut self, row_number: u32, row: &Row, format: &Format ) -> WorkSheetResult<()>

source§

fn set_row_height(&mut self, row: u32, height: f64) -> WorkSheetResult<()>

set row height and format
source§

fn set_row_height_pixels( &mut self, row: u32, height: f64 ) -> WorkSheetResult<()>

source§

fn set_row_height_with_format( &mut self, row: u32, height: f64, format: &Format ) -> WorkSheetResult<()>

source§

fn set_row_height_pixels_with_format( &mut self, row: u32, height: f64, format: &Format ) -> WorkSheetResult<()>

source§

fn hide_row(&mut self, row: u32) -> WorkSheetResult<()>

hide row
source§

fn set_row_level(&mut self, row: u32, level: u32) -> WorkSheetResult<()>

collapse rows
source§

fn collapse_row(&mut self, row: u32) -> WorkSheetResult<()>

source§

impl Write for WorkSheet

source§

fn write_cell<L: Location, T: Clone + CellDisplay + CellValue>( &mut self, loc: L, cell: &Cell<T> ) -> WorkSheetResult<()>

source§

fn write<L: Location, T: CellDisplay + CellValue>( &mut self, loc: L, data: T ) -> WorkSheetResult<()>

source§

fn write_string<L: Location>( &mut self, loc: L, data: String ) -> WorkSheetResult<()>

source§

fn write_number<L: Location>( &mut self, loc: L, data: i32 ) -> WorkSheetResult<()>

source§

fn write_double<L: Location>( &mut self, loc: L, data: f64 ) -> WorkSheetResult<()>

source§

fn write_boolean<L: Location>( &mut self, loc: L, data: bool ) -> WorkSheetResult<()>

source§

fn write_row<L: Location, T: CellDisplay + CellValue>( &mut self, loc: L, data: &[T] ) -> WorkSheetResult<()>

source§

fn write_row_cells<L: Location, T: CellDisplay + CellValue + Clone>( &mut self, loc: L, cells: &[Cell<T>] ) -> WorkSheetResult<()>

source§

fn write_column<L: Location, T: CellDisplay + CellValue>( &mut self, loc: L, data: &[T] ) -> WorkSheetResult<()>

source§

fn write_column_cells<L: Location, T: CellDisplay + CellValue + Clone>( &mut self, loc: L, cells: &[Cell<T>] ) -> WorkSheetResult<()>

source§

fn write_url<L: Location>(&mut self, loc: L, url: &str) -> WorkSheetResult<()>

source§

fn write_url_text<L: Location, T: CellDisplay + CellValue>( &mut self, loc: L, url: &str, data: &str ) -> WorkSheetResult<()>

source§

fn merge_range<L: LocationRange, T: CellDisplay + CellValue>( &mut self, loc: L, data: T ) -> WorkSheetResult<()>

source§

fn write_formula<L: Location>( &mut self, loc: L, data: &str ) -> WorkSheetResult<()>

source§

fn write_old_formula<L: Location>( &mut self, loc: L, data: &str ) -> WorkSheetResult<()>

source§

fn write_array_formula<L: Location>( &mut self, loc: L, data: &str ) -> WorkSheetResult<()>

source§

fn write_dynamic_array_formula<L: Location>( &mut self, loc: L, data: &str ) -> WorkSheetResult<()>

source§

fn write_with_format<L: Location, T: Default + Clone + CellDisplay + CellValue>( &mut self, loc: L, data: T, format: &Format ) -> WorkSheetResult<()>

source§

fn write_string_with_format<L: Location>( &mut self, loc: L, data: String, format: &Format ) -> WorkSheetResult<()>

source§

fn write_number_with_format<L: Location>( &mut self, loc: L, data: i32, format: &Format ) -> WorkSheetResult<()>

source§

fn write_double_with_format<L: Location>( &mut self, loc: L, data: f64, format: &Format ) -> WorkSheetResult<()>

source§

fn write_boolean_with_format<L: Location>( &mut self, loc: L, data: bool, format: &Format ) -> WorkSheetResult<()>

source§

fn write_row_with_format<L: Location, T: CellDisplay + CellValue>( &mut self, loc: L, data: Iter<'_, T>, format: &Format ) -> WorkSheetResult<()>

source§

fn write_column_with_format<L: Location, T: CellDisplay + CellValue>( &mut self, loc: L, data: Iter<'_, T>, format: &Format ) -> WorkSheetResult<()>

source§

fn write_url_with_format<L: Location>( &mut self, loc: L, url: &str, format: &Format ) -> WorkSheetResult<()>

source§

fn write_url_text_with_format<L: Location>( &mut self, loc: L, url: &str, data: &str, format: &Format ) -> WorkSheetResult<()>

source§

fn write_formula_with_format<L: Location>( &mut self, loc: L, data: &str, format: &Format ) -> WorkSheetResult<()>

source§

fn write_array_formula_with_format<L: Location>( &mut self, loc: L, data: &str, format: &Format ) -> WorkSheetResult<()>

source§

fn write_dynamic_array_formula_with_format<L: LocationRange>( &mut self, loc_range: L, data: &str, format: &Format ) -> WorkSheetResult<()>

source§

fn merge_range_with_format<L: LocationRange, T: CellDisplay + CellValue>( &mut self, loc: L, data: T, format: &Format ) -> WorkSheetResult<()>

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> 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

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.