Struct Book

Source
pub struct Book {
    pub sheets: Vec<Sheet>,
    pub current_sheet: usize,
    pub dependencies: DependencyTree,
    /* private fields */
}

Fields§

§sheets: Vec<Sheet>§current_sheet: usize§dependencies: DependencyTree

Implementations§

Source§

impl Book

Source

pub fn new() -> Book

Source

pub fn load(&mut self, progress: bool) -> Result<(), Error>

Source

pub fn load_shared_strings(&mut self) -> Result<(), Error>

Source

pub fn load_styles(&mut self) -> Result<(), Error>

Source

pub fn load_sheet_names(&mut self) -> Result<(), Error>

Source

pub fn load_sheets(&mut self, progress: bool) -> Result<(), Error>

Source

pub fn load_sheets_dimensions(&mut self) -> Result<(), Error>

Source

pub fn load_sheet_dimensions(&mut self, sheet_idx: usize) -> Result<(), Error>

Source

pub fn load_sheet( &mut self, sheet_idx: usize, progress: bool, ) -> Result<(), Error>

Source

pub fn zip_from_path(path: &str) -> ZipType

Source

pub fn decode_text_event( reader: &Reader<BufReader<ZipFile<'_>>>, e: &BytesText<'_>, ) -> String

Source

pub fn decode_attribute_usize( reader: &Reader<BufReader<ZipFile<'_>>>, a: Attribute<'_>, ) -> usize

Source

pub fn decode_style( reader: &Reader<BufReader<ZipFile<'_>>>, e: &BytesStart<'_>, ) -> Style

Source

pub fn get_mut_sheet_by_name<'a>(&'a mut self, s: &'a str) -> &'a mut Sheet

Source

pub fn get_mut_sheet_by_idx(&mut self, idx: usize) -> &mut Sheet

Source

pub fn get_sheet_by_name(&self, s: String) -> &Sheet

Source

pub fn get_sheet_by_idx(&self, idx: usize) -> &Sheet

Source

pub fn resolve_str_ref(&self, s: &str) -> Result<Array2<Value>, Error>

Source

pub fn resolve_ref(&self, expr: Expr) -> Result<Array2<Value>, Error>

Source

pub fn calculate_cell( &mut self, cell_id: &CellId, debug: bool, ) -> Result<(), Error>

Source

pub fn is_calculated(&self, expr: Expr) -> bool

Source

pub fn calculate(&mut self, debug: bool, progress: bool) -> Result<(), Error>

Trait Implementations§

Source§

impl Default for Book

Source§

fn default() -> Self

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

impl From<&str> for Book

Source§

fn from(s: &str) -> Self

Converts to this type from the input type.
Source§

impl From<String> for Book

Source§

fn from(s: String) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Book

§

impl RefUnwindSafe for Book

§

impl Send for Book

§

impl Sync for Book

§

impl Unpin for Book

§

impl UnwindSafe for Book

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

Source§

type Output = T

Should always be Self
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.