pub fn encode_paint(
document: &PaintDocument,
) -> Result<Vec<u8>, EncodePaintError>Expand description
Encodes a surface paint document, as the version PaintDocument::version
gives.
ยงErrors
When the document breaks a rule of section 10.1: see EncodePaintError.