pub fn encode(output: &LayoutOutput) -> Result<Vec<u8>, WireError>
Encodes the whole display structure, version first.