//! Port of `src/printer/result.ts` (rendering part, see the host api for the javascript classes).
usecrate::printer::sourcemap::SourceMap;usecrate::types::ErrorDescription;/// `RenderResult`: the rendered css (utf-8 bytes, decoded lazily by the bindings)
#[derive(Clone, Debug)]pubstructRenderResult{pubbytes:Vec<u8>,
puberrors:Vec<ErrorDescription>,
pubtotal: String,
pubmap:Option<SourceMap>,
/// length of the css in utf-16 code units (`code.length`)
pubcode_length:usize,
}implRenderResult{/// the rendered css
pubfncode(&self)->&str{std::str::from_utf8(&self.bytes).unwrap_or_default()}/// `RenderResult.codeLength()`
pubfncode_length(&self)->usize{self.code_length
}}