// SPDX-License-Identifier: MIT OR Apache-2.0
//! Render backends for converting a Canvas to output formats.
pubmodsvg;#[cfg(feature ="png")]pubmodpng;usecrate::canvas::Canvas;usecrate::error::Result;/// A render backend converts a [`Canvas`] into an output format.
pubtraitRenderBackend{/// The output type (e.g., `String` for SVG, `Vec<u8>` for PNG).
typeOutput;/// Render the canvas to the output format.
fnrender(&self, canvas:&Canvas)->Result<Self::Output>;}