Trait Renderer
pub trait Renderer: Renderer {
// Required methods
fn measure_svg(&self, handle: &Handle) -> Size<u32>;
fn draw_svg(&mut self, svg: Svg, bounds: Rectangle);
}
Available on crate feature
advanced
only.Expand description
A Renderer
that can render vector graphics.
Required Methods§
fn measure_svg(&self, handle: &Handle) -> Size<u32>
fn measure_svg(&self, handle: &Handle) -> Size<u32>
Returns the default dimensions of an SVG for the given Handle
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.