pub fn write_and_get_bytes(rows: Vec<Vec<&str>>) -> Result<Vec<u8>, ExcelError> {
        let mut sheets_and_rows = HashMap::new();
        sheets_and_rows.insert("sheet1", rows);
        Self::write_with_sheet_and_get_bytes(sheets_and_rows)
    }
/// export a sheet with data, return bytes
/// - `rows`: export rows and columns
///
/// # Example
/// ```rust
/// let cols = vec!["cell1", "cell2"];
/// let rows = vec![cols];
/// Excel::write_and_get_bytes(rows);
/// ```
export a sheet with data, return bytes
`rows`: export rows and columns
export a sheet with data return bytes ` rows ` : export rows and columns
pub fn write_and_get_bytes(rows: Vec<Vec<&str>>) -> Result<Vec<u8>, ExcelError> {
        let mut sheets_and_rows = HashMap::new();
        sheets_and_rows.insert("sheet1", rows);
        Self::write_with_sheet_and_get_bytes(sheets_and_rows)
    }
pub fn write_and_get_bytes ( rows : Vec < Vec < & str > > ) -> Result < Vec < u8 > , ExcelError > { let mut sheets_and_rows = HashMap :: new ( ) ; sheets_and_rows . insert ( " " , rows ) ; Self :: write_with_sheet_and_get_bytes ( sheets_and_rows ) }
export a sheet with data, return bytes
 `rows`: export rows and columns
export a sheet with data return bytes ` rows ` : export rows and columns
rows
Vec<Vec<&str>>
rows
Vec<Vec<&str>>
example
```rust
let cols = vec!["cell1", "cell2"];
let rows = vec![cols];
Excel::write_and_get_bytes(rows);
```
` ` ` rust let cols = vec! [ " cell1 " " cell2 " ] ; let rows = vec! [ cols ] ; Excel :: write_and_get_bytes ( rows ) ; ` ` `