pub trait VisualExtensions {
// Required method
fn render_to_with_dpi(
&self,
destination: &mut dyn Write,
dpi: f64,
) -> Result<()>;
// Provided method
fn render_to(&self, destination: &mut dyn Write) -> Result<()> { ... }
}Expand description
Extension methods of controls for DevTools.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".