Struct xl::Workbook

source · []
pub struct Workbook {
    pub path: String,
    pub date_system: DateSystem,
    /* private fields */
}
Expand description

The Workbook is the primary object you will use in this module. The public interface allows you to see the path of the workbook as well as its date system.

Example usage:

use xl::Workbook;
let mut wb = Workbook::open("tests/data/Book1.xlsx").unwrap();

Fields

path: Stringdate_system: DateSystem

Implementations

Return SheetMap of all sheets in this workbook. See SheetMap class and associated methods for more detailed documentation.

Open an existing workbook (xlsx file). Returns a Result in case there is an error opening the workbook.

Example usage:
use xl::Workbook;

let mut wb = Workbook::open("tests/data/Book1.xlsx");
assert!(wb.is_ok());

// non-existant file
let mut wb = Workbook::open("Non-existant xlsx");
assert!(wb.is_err());

// non-xlsx file
let mut wb = Workbook::open("src/main.rs");
assert!(wb.is_err());

Alternative name for Workbook::new.

Simple method to print out all the inner files of the xlsx zip.

Create a SheetReader for the given worksheet. A SheetReader is a struct in the xl::Worksheet class that can be used to iterate over rows, etc. See documentation in the xl::Worksheet module for more information.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.