Skip to main content

try_write_docx

Function try_write_docx 

Source
pub fn try_write_docx(model: &DocModel) -> Result<Vec<u8>>
Expand description

Fallible variant of write_docx: returns the serialization error instead of an empty buffer if packaging ever fails. Prefer this when you need to surface write failures rather than silently emit nothing.