Skip to main content

write_mdl

Function write_mdl 

Source
pub fn write_mdl<W: Write>(writer: &mut W, mdl: &Mdl) -> Result<(), MdlError>
Expand description

Writes an MDL file structure to a writer.

ยงErrors

MdlError::ValueOverflow when a node count, offset or array length will not fit its on-disk width, and MdlError::InvalidData when the node tree does not describe a writable model. MdlError::Io when the writer fails, which can leave a partial file.