Skip to main content

write

Function write 

Source
pub fn write(c: &Contents<'_>, out: &mut impl Write) -> Result<String, Error>
Expand description

Writes a .kime file and returns its model hash.

§Errors

Any error from out, or Error::Format for a file name that could escape its directory.

§Panics

Never. The index holds only strings and numbers, which always serialize.