pub trait Renderer {
type Output;
// Required method
fn render(
&self,
symbol: &Symbol,
options: &RenderOptions,
) -> Result<Self::Output>;
}Expand description
Required Associated Types§
Required Methods§
Sourcefn render(
&self,
symbol: &Symbol,
options: &RenderOptions,
) -> Result<Self::Output>
fn render( &self, symbol: &Symbol, options: &RenderOptions, ) -> Result<Self::Output>
Render symbol.
§Errors
Returns Error::InvalidRenderOptions if the geometry is unusable, or
Error::Render if the underlying encoder fails.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".