pub struct Model { /* private fields */ }Expand description
A workbook read far enough to add sheets to it.
Implementations§
Source§impl Model
impl Model
Sourcepub fn read(bytes: Vec<u8>, label: &str) -> Result<Model, Refusal>
pub fn read(bytes: Vec<u8>, label: &str) -> Result<Model, Refusal>
A model read from its bytes; label is what a refusal calls it.
Sourcepub fn host_info(&self) -> HostInfo
pub fn host_info(&self) -> HostInfo
What the walk and the stamp need: the sheets, the fingerprint, the style base and the metadata index.
Sourcepub fn sheet_names(&self) -> &[String]
pub fn sheet_names(&self) -> &[String]
The model’s sheet names, as it spells them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more