Struct umya_spreadsheet::structs::Spreadsheet
source · [−]pub struct Spreadsheet { /* private fields */ }
Expand description
A Spreadsheet Object. The starting point of all struct.
Implementations
sourceimpl Spreadsheet
impl Spreadsheet
sourcepub fn insert_new_row<S: Into<String>>(
&mut self,
sheet_name: S,
row_index: u32,
num_rows: u32
)
pub fn insert_new_row<S: Into<String>>(
&mut self,
sheet_name: S,
row_index: u32,
num_rows: u32
)
sourcepub fn insert_new_colmun<S: Into<String>>(
&mut self,
sheet_name: S,
column: S,
num_columns: u32
)
pub fn insert_new_colmun<S: Into<String>>(
&mut self,
sheet_name: S,
column: S,
num_columns: u32
)
sourcepub fn insert_new_colmun_by_index<S: Into<String>>(
&mut self,
sheet_name: S,
column_index: u32,
num_columns: u32
)
pub fn insert_new_colmun_by_index<S: Into<String>>(
&mut self,
sheet_name: S,
column_index: u32,
num_columns: u32
)
sourcepub fn remove_colmun<S: Into<String>>(
&mut self,
sheet_name: S,
column: S,
num_columns: u32
)
pub fn remove_colmun<S: Into<String>>(
&mut self,
sheet_name: S,
column: S,
num_columns: u32
)
sourcepub fn remove_colmun_by_index<S: Into<String>>(
&mut self,
sheet_name: S,
column_index: u32,
num_columns: u32
)
pub fn remove_colmun_by_index<S: Into<String>>(
&mut self,
sheet_name: S,
column_index: u32,
num_columns: u32
)
sourcepub fn get_cell_value_by_address<S: Into<String>>(
&self,
address: S
) -> Vec<&CellValue>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_cell_value_by_address<S: Into<String>>(
&self,
address: S
) -> Vec<&CellValue>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Gets the cell value by specifying an address.
Arguments
address
- address. ex) “Sheet1!A1:C5”
Return value
*Vec<&CellValue>
- CellValue List.
Examples
let mut book = umya_spreadsheet::new_file();
let mut cell_value_List = book.get_cell_value_by_address("Sheet1!A1:C5");
sourcepub fn get_theme_mut(&mut self) -> &mut Theme
pub fn get_theme_mut(&mut self) -> &mut Theme
Get Theme in mutable.
sourcepub fn get_properties(&self) -> &Properties
pub fn get_properties(&self) -> &Properties
Get Properties.
sourcepub fn get_properties_mut(&mut self) -> &mut Properties
pub fn get_properties_mut(&mut self) -> &mut Properties
Get Properties in mutable.
sourcepub fn set_properties(&mut self, value: Properties) -> &mut Self
pub fn set_properties(&mut self, value: Properties) -> &mut Self
sourcepub fn get_security(&self) -> &Security
pub fn get_security(&self) -> &Security
Get Security.
sourcepub fn get_security_mut(&mut self) -> &mut Security
pub fn get_security_mut(&mut self) -> &mut Security
Get Security in mutable.
sourcepub fn set_security(&mut self, value: Security) -> &mut Self
pub fn set_security(&mut self, value: Security) -> &mut Self
sourcepub fn get_macros_code(&self) -> &Option<Vec<u8>>
pub fn get_macros_code(&self) -> &Option<Vec<u8>>
sourcepub fn set_macros_code(&mut self, value: Vec<u8>) -> &mut Self
pub fn set_macros_code(&mut self, value: Vec<u8>) -> &mut Self
sourcepub fn remove_macros_code(&mut self) -> &mut Self
pub fn remove_macros_code(&mut self) -> &mut Self
Remove Macros Code
sourcepub fn get_has_macros(&self) -> bool
pub fn get_has_macros(&self) -> bool
Has Macros Code
sourcepub fn get_sheet_collection(&self) -> &Vec<Worksheet>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_sheet_collection(&self) -> &Vec<Worksheet>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get Work Sheet List.
sourcepub fn get_sheet_collection_no_check(&self) -> &Vec<Worksheet>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_sheet_collection_no_check(&self) -> &Vec<Worksheet>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get Work Sheet List. No check serialized.
sourcepub fn get_sheet_collection_mut(&mut self) -> &mut Vec<Worksheet>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_sheet_collection_mut(&mut self) -> &mut Vec<Worksheet>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get Work Sheet List in mutable.
sourcepub fn get_sheet_count(&self) -> usize
pub fn get_sheet_count(&self) -> usize
sourcepub fn read_sheet_collection(&mut self) -> &mut Self
pub fn read_sheet_collection(&mut self) -> &mut Self
serialize by all worksheet.
sourcepub fn read_sheet(&mut self, index: usize) -> &mut Self
pub fn read_sheet(&mut self, index: usize) -> &mut Self
serialize a worksheet.
sourcepub fn get_sheet(&self, index: usize) -> Result<&Worksheet, &'static str>
pub fn get_sheet(&self, index: usize) -> Result<&Worksheet, &'static str>
Get Work Sheet.
Arguments
index
- sheet index
Return value
Result<&Worksheet, &'static str>
- OK:work sheet. Err:Error.
sourcepub fn get_sheet_mut(&mut self, index: usize) -> &mut Worksheet
pub fn get_sheet_mut(&mut self, index: usize) -> &mut Worksheet
sourcepub fn get_sheet_by_name<S: Into<String>>(
&self,
sheet_name: S
) -> Result<&Worksheet, &'static str>
pub fn get_sheet_by_name<S: Into<String>>(
&self,
sheet_name: S
) -> Result<&Worksheet, &'static str>
Get Work Sheet.
Arguments
sheet_name
- sheet name
Return value
Result<&Worksheet, &'static str>
- OK:work sheet. Err:Error.
sourcepub fn get_sheet_by_name_mut<S: Into<String>>(
&mut self,
sheet_name: S
) -> Result<&mut Worksheet, &'static str>
pub fn get_sheet_by_name_mut<S: Into<String>>(
&mut self,
sheet_name: S
) -> Result<&mut Worksheet, &'static str>
Get Work Sheet in mutable.
Arguments
sheet_name
- sheet name
Return value
Result<&mut Worksheet, &'static str>
- OK:work sheet. Err:Error.
sourcepub fn add_sheet(
&mut self,
value: Worksheet
) -> Result<&mut Worksheet, &'static str>
pub fn add_sheet(
&mut self,
value: Worksheet
) -> Result<&mut Worksheet, &'static str>
Add Work Sheet.
Arguments
value
- Work Sheet
Return value
Result<&mut Worksheet, &'static str>
- OK:added work sheet. Err:Error.
sourcepub fn new_sheet<S: Into<String>>(
&mut self,
sheet_title: S
) -> Result<&mut Worksheet, &'static str>
pub fn new_sheet<S: Into<String>>(
&mut self,
sheet_title: S
) -> Result<&mut Worksheet, &'static str>
Add New Work Sheet.
Arguments
sheet_title
- sheet title
Return value
Result<&mut Worksheet, &'static str>
- OK:added work sheet. Err:Error.
sourcepub fn set_sheet_title<S: Into<String>>(
&mut self,
index: usize,
sheet_title: S
) -> Result<(), &'static str>
pub fn set_sheet_title<S: Into<String>>(
&mut self,
index: usize,
sheet_title: S
) -> Result<(), &'static str>
Set Sheet Title.
Arguments
index
- target sheet indexsheet_title
- sheet title
Return value
Result<(), &'static str>
- OK:Success Err:Error.
sourcepub fn get_workbook_view(&self) -> &WorkbookView
pub fn get_workbook_view(&self) -> &WorkbookView
Get Workbook View.
sourcepub fn get_workbook_view_mut(&mut self) -> &mut WorkbookView
pub fn get_workbook_view_mut(&mut self) -> &mut WorkbookView
Get Workbook View in mutable.
sourcepub fn set_workbook_view(&mut self, value: WorkbookView) -> &mut Self
pub fn set_workbook_view(&mut self, value: WorkbookView) -> &mut Self
Trait Implementations
sourceimpl Clone for Spreadsheet
impl Clone for Spreadsheet
sourcefn clone(&self) -> Spreadsheet
fn clone(&self) -> Spreadsheet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Spreadsheet
impl Debug for Spreadsheet
sourceimpl Default for Spreadsheet
impl Default for Spreadsheet
sourcefn default() -> Spreadsheet
fn default() -> Spreadsheet
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Spreadsheet
impl Send for Spreadsheet
impl Sync for Spreadsheet
impl Unpin for Spreadsheet
impl UnwindSafe for Spreadsheet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more