Skip to main content

parse_svg_bytes

Function parse_svg_bytes 

Source
pub fn parse_svg_bytes(bytes: &[u8]) -> Result<SvgDocument, SvgParseError>
Expand description

Parse raw SVG bytes (plain or gzip-compressed) into an SvgDocument. All parsing logic lives here; the asset loader only feeds it file bytes.