pub struct ExcelExporter { /* private fields */ }Expand description
Excel exporter for v1.0.0 array models and v5.0.0 scalar models
Implementations§
Source§impl ExcelExporter
impl ExcelExporter
Sourcepub fn new(model: ParsedModel) -> Self
pub fn new(model: ParsedModel) -> Self
Create a new Excel exporter
Sourcepub fn export(&self, output_path: &Path) -> ForgeResult<()>
pub fn export(&self, output_path: &Path) -> ForgeResult<()>
Export the model to an Excel .xlsx file
§Errors
Returns an error if the workbook cannot be saved to the specified path.
Sourcepub fn export_to_buffer(&self) -> ForgeResult<Vec<u8>>
pub fn export_to_buffer(&self) -> ForgeResult<Vec<u8>>
Export the model to an in-memory Excel buffer.
§Errors
Returns an error if the workbook cannot be serialized.
Auto Trait Implementations§
impl Freeze for ExcelExporter
impl RefUnwindSafe for ExcelExporter
impl Send for ExcelExporter
impl Sync for ExcelExporter
impl Unpin for ExcelExporter
impl UnsafeUnpin for ExcelExporter
impl UnwindSafe for ExcelExporter
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